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