layout/reftests/svg/dynamic-conditions-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

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" onload="m();">
michael@0 7 <title>Testcase for dynamic conditions</title>
michael@0 8 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=409383 -->
michael@0 9
michael@0 10 <script>
michael@0 11 function m() {
michael@0 12 var svgns = "http://www.w3.org/2000/svg";
michael@0 13
michael@0 14 var rect1 = document.getElementById("rect1");
michael@0 15 rect1.setAttribute("systemLanguage", "foo");
michael@0 16
michael@0 17 var rect2 = document.getElementById("rect2");
michael@0 18 rect2.setAttribute("requiredFeatures", "http://www.w3.org/TR/SVG11/feature#Gradient");
michael@0 19
michael@0 20 var rect3 = document.getElementById("rect3");
michael@0 21 rect3.setAttribute("requiredFeatures", "foo");
michael@0 22
michael@0 23 var rect4 = document.getElementById("rect4");
michael@0 24 rect4.setAttribute("requiredExtensions", "foo");
michael@0 25 }
michael@0 26 </script>
michael@0 27
michael@0 28 <rect width="100%" height="100%" fill="lime"/>
michael@0 29
michael@0 30 <rect id="rect1" x="50" y="100" width="50" height="50" fill="red"/>
michael@0 31
michael@0 32 <rect x="200" y="100" width="50" height="50" fill="red"/>
michael@0 33 <rect id="rect2" x="200" y="100" width="50" height="50" fill="lime"/>
michael@0 34
michael@0 35 <rect id="rect3" x="50" y="200" width="50" height="50" fill="red"/>
michael@0 36
michael@0 37 <rect id="rect4" x="200" y="200" width="50" height="50" fill="red"/>
michael@0 38 </svg>

mercurial