layout/reftests/svg/dynamic-conditions-01.svg

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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

mercurial