Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / bug86119.html
blobc1c3961416a087fe7fa4ff8bb7b3848dcae7330a
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
8 function onload()
10 window.svgRoot = document.getElementById("svgRoot");
11 window.svgViewBaseVal = window.svgRoot.viewBox.baseVal;
13 // Cause GC of window.svgRoot.viewBox
14 if (window.GCController)
15 GCController.collect();
17 // Set a value on window.svgViewBaseVal
18 window.svgViewBaseVal.height = 56;
19 if (window.svgRoot.viewBox.baseVal.height != 56)
20 document.body.innerHTML = "FAIL";
22 // Repeat with a non-dom-attached viewBox
23 window.viewElement = parent.document.createElementNS("http://www.w3.org/2000/svg", "view");
24 window.viewBaseVal = window.viewElement.viewBox.baseVal;
25 if (window.GCController)
26 GCController.collect();
27 window.viewBaseVal.height = 12;
28 if (window.viewElement.viewBox.baseVal.height != 12)
29 document.body.innerHTML = "FAIL";
30 else {
31 document.body.appendChild(window.viewElement);
32 window.viewBaseVal.height = 34;
33 if (window.viewElement.viewBox.baseVal.height != 34)
34 document.body.innerHTML = "FAIL";
37 </script>
38 </head>
39 <body onload="onload()">
40 Test for Bug 86119. Test passes if it does not crash and you see a green
41 rectangle above this text.
42 <svg id="svgRoot" width="100" height="100" xmlns:svg="http://www.w3.org/2000/svg">
43 <rect x="10" height="80" width="80" y="10" fill="green"/>
44 </svg>
45 </body>
46 </html>