1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-conditions-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" onload="m();"> 1.10 + <title>Testcase for dynamic conditions</title> 1.11 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=409383 --> 1.12 + 1.13 + <script> 1.14 + function m() { 1.15 + var svgns = "http://www.w3.org/2000/svg"; 1.16 + 1.17 + var rect1 = document.getElementById("rect1"); 1.18 + rect1.setAttribute("systemLanguage", "foo"); 1.19 + 1.20 + var rect2 = document.getElementById("rect2"); 1.21 + rect2.setAttribute("requiredFeatures", "http://www.w3.org/TR/SVG11/feature#Gradient"); 1.22 + 1.23 + var rect3 = document.getElementById("rect3"); 1.24 + rect3.setAttribute("requiredFeatures", "foo"); 1.25 + 1.26 + var rect4 = document.getElementById("rect4"); 1.27 + rect4.setAttribute("requiredExtensions", "foo"); 1.28 + } 1.29 + </script> 1.30 + 1.31 + <rect width="100%" height="100%" fill="lime"/> 1.32 + 1.33 + <rect id="rect1" x="50" y="100" width="50" height="50" fill="red"/> 1.34 + 1.35 + <rect x="200" y="100" width="50" height="50" fill="red"/> 1.36 + <rect id="rect2" x="200" y="100" width="50" height="50" fill="lime"/> 1.37 + 1.38 + <rect id="rect3" x="50" y="200" width="50" height="50" fill="red"/> 1.39 + 1.40 + <rect id="rect4" x="200" y="200" width="50" height="50" fill="red"/> 1.41 +</svg>