Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-hides-fallback.html
blobc31da53aa51588cdf5e39b5b00983a2c1a9176f8
1 <head>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 </head>
7 <body>
8 <p>This text should NOT be visible. It should be overwritten by the result of the test.</p>
9 <p>There should be no text below this, because the text is inside a canvas element and JavaScript is enabled.</p>
10 <canvas>This text should NOT be visible if JavaScript is enabled.</canvas>
11 <script>
12 var result = "The DOM part of this test FAILED. The canvas element did not have a child.";
13 if (document.getElementsByTagName("canvas")[0].firstChild)
14 result = "The DOM part of this test succeeded. The canvas element had at least one child, "
15 + "indicating that we are hiding text by not rendering it, but we are creating DOM elements as expected."
16 document.getElementsByTagName("p")[0].innerText = result;
17 </script>
18 </body>