OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <style> | |
3 text::selection { color: blue; } | |
4 </style> | |
5 <script> | |
6 if (window.testRunner) | |
7 testRunner.dumpAsText(); | |
8 | |
9 window.onload = function () { | |
10 var range = document.createRange(); | |
11 range.setEnd(id1, id1.childNodes.length); | |
12 document.getSelection().addRange(range); | |
13 document.getElementById("masktext").setAttribute("display", "inherit"); | |
14 }; | |
15 </script> | |
16 <svg> | |
17 <mask id="m1"> | |
18 <text id="masktext" y="100" fill="white" font-size="100">PASS</text> | |
19 </mask> | |
20 <rect width="100%" height="100" id="id1" mask="url(#m1)"/> | |
21 </svg> | |
OLD | NEW |