layout/reftests/text-shadow/text-shadow-on-selection-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4 <script type="text/javascript">
michael@0 5 function onload() {
michael@0 6 var range = document.createRange();
michael@0 7 range.selectNodeContents(document.getElementById("selectMe"));
michael@0 8 var sel = window.getSelection();
michael@0 9 sel.removeAllRanges();
michael@0 10 sel.addRange(range);
michael@0 11 window.focus();
michael@0 12 }
michael@0 13 function disableReftestWait() {
michael@0 14 document.documentElement.className = '';
michael@0 15 }
michael@0 16 </script>
michael@0 17 <style type="text/css">
michael@0 18 body {
michael@0 19 background: white;
michael@0 20 font-size: 24px;
michael@0 21 }
michael@0 22 div {
michael@0 23 color: blue;
michael@0 24 text-shadow: red 2px 2px 0px;
michael@0 25 }
michael@0 26 ::-moz-selection {
michael@0 27 background: yellow;
michael@0 28 color: white;
michael@0 29 }
michael@0 30 ::selection {
michael@0 31 background: yellow;
michael@0 32 color: white;
michael@0 33 }
michael@0 34 </style>
michael@0 35 </head>
michael@0 36 <body onload="onload()" onfocus="disableReftestWait()">
michael@0 37 <div>
michael@0 38 hello <span id="selectMe">selected</span> world
michael@0 39 </div>
michael@0 40 </body>
michael@0 41 </html>

mercurial