layout/reftests/text-shadow/text-shadow-selected-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/text-shadow/text-shadow-selected-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +<script type="text/javascript">
     1.8 +function onload() {
     1.9 +  window.focus();
    1.10 +  var range = document.createRange();
    1.11 +  range.selectNodeContents(document.getElementById("selectMe"));
    1.12 +  var sel = window.getSelection();
    1.13 +  sel.removeAllRanges();
    1.14 +  sel.addRange(range);
    1.15 +}
    1.16 +</script>
    1.17 +<style type="text/css">
    1.18 +body {
    1.19 +  background: lightGray;
    1.20 +}
    1.21 +div {
    1.22 +  position: absolute;
    1.23 +  top: 10px;
    1.24 +  left: 10px;
    1.25 +  font: 36px monospace;
    1.26 +  color: white;
    1.27 +}
    1.28 +</style>
    1.29 +</head>
    1.30 +<!-- test for bug 692752 - paint text shadow on top of selection highlight -->
    1.31 +<body onload="onload()">
    1.32 +<div style="text-shadow:1px 1px 1px red;" id="selectMe">
    1.33 +selected shadowed text
    1.34 +</div>
    1.35 +</body>
    1.36 +</html>

mercurial