layout/reftests/svg/switch-01.svg

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <?xml version="1.0"?>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <svg version="1.1" xmlns="http://www.w3.org/2000/svg">
     7 	<title>Testcase for switch</title>
     8 	<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=409383 -->
    10 	<rect width="100%" height="100%" fill="lime"/>
    12 	<rect x="50" y="100" width="50" height="50" fill="red"/>
    13 	<switch>
    14         <!-- first switch item is visible -->
    15      	<rect x="50" y="100" width="50" height="50" fill="lime"/>
    16 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    17 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    18 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    19 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    20 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    21 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    22 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    23 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    24 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    25 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    26 		<rect x="50" y="100" width="50" height="50" fill="red"/>
    27 	</switch>
    29 	<rect x="200" y="100" width="50" height="50" fill="red"/>
    30 	<switch>
    31 		<!-- test non-matching system language -->
    32 		<rect systemLanguage="foo" x="200" y="100" width="50" height="50" fill="red"/>
    33 		<rect x="200" y="100" width="50" height="50" fill="lime"/>
    34 		<rect x="200" y="100" width="50" height="50" fill="red"/>
    35 		<rect x="200" y="100" width="50" height="50" fill="red"/>
    36 	</switch>
    38 	<rect x="50" y="200" width="50" height="50" fill="red"/>
    39 	<switch>
    40 		<!-- test matching required features -->
    41 		<rect requiredFeatures="http://www.w3.org/TR/SVG11/feature#CoreAttribute  http://www.w3.org/TR/SVG11/feature#Gradient"
    42 			  x="50" y="200" width="50" height="50" fill="lime"/>
    43 		<rect x="50" y="200" width="50" height="50" fill="red"/>
    44 		<rect x="50" y="200" width="50" height="50" fill="red"/>
    45 	</switch>
    47 	<rect x="200" y="200" width="50" height="50" fill="red"/>
    48 	<switch>
    49 		<!-- test non-matching required features -->
    50 		<rect requiredFeatures="foo" x="200" y="200" width="50" height="50" fill="red"/>
    51 		<rect x="200" y="200" width="50" height="50" fill="lime"/>
    52 		<rect x="200" y="200" width="50" height="50" fill="red"/>
    53 		<rect x="200" y="200" width="50" height="50" fill="red"/>
    54 	</switch>
    56 	<rect x="50" y="300" width="50" height="50" fill="red"/>
    57 	<switch>
    58 		<!-- test non-matching required extensions -->
    59 		<rect requiredExtensions="foo" x="50" y="300" width="50" height="50" fill="red"/>
    60 		<rect x="50" y="300" width="50" height="50" fill="lime"/>
    61 		<rect x="50" y="300" width="50" height="50" fill="red"/>
    62 		<rect x="50" y="300" width="50" height="50" fill="red"/>
    63 	</switch>
    65 	<switch>
    66 		<!-- test display:none - should see nothing here -->
    67 		<rect style="display: none;"  x="200" y="300" width="50" height="50" fill="red"/>
    68 		<rect x="200" y="300" width="50" height="50" fill="red"/>
    69 	</switch>
    70 </svg>

mercurial