1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/text-shadow/text-shadow-on-selection-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 +<script type="text/javascript"> 1.8 +function onload() { 1.9 + var range = document.createRange(); 1.10 + range.selectNodeContents(document.getElementById("selectMe")); 1.11 + var sel = window.getSelection(); 1.12 + sel.removeAllRanges(); 1.13 + sel.addRange(range); 1.14 + window.focus(); 1.15 +} 1.16 +function disableReftestWait() { 1.17 + document.documentElement.className = ''; 1.18 +} 1.19 +</script> 1.20 +<style type="text/css"> 1.21 +body { 1.22 + background: white; 1.23 + font-size: 24px; 1.24 +} 1.25 +div { 1.26 + color: blue; 1.27 + text-shadow: red 2px 2px 0px; 1.28 +} 1.29 +::-moz-selection { 1.30 + background: yellow; 1.31 + color: white; 1.32 + text-shadow: none; 1.33 +} 1.34 +::selection { 1.35 + background: yellow; 1.36 + color: white; 1.37 + text-shadow: none; 1.38 +} 1.39 +</style> 1.40 +</head> 1.41 +<body onload="onload()" onfocus="disableReftestWait()"> 1.42 +<div> 1.43 +hello <span id="selectMe">selected</span> world 1.44 +</div> 1.45 +</body> 1.46 +</html>