summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/script-inside-canvas-fallback.html
blob: 7ff7dd1f32df97708f8db5f5e481c8fb029e3fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<head>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
</head>
<body>
<div>This text should NOT be visible, because JavaScript should replace it.</div> 
<canvas>
This text should NOT be visible if JavaScript is enabled.
<script>
document.getElementsByTagName("div")[0].innerText = "This text was set by a script inside a canvas element. "
    + "Such scripts run even though the content is not displayed."
</script>
</canvas>
</body>