This commit is contained in:
Simon Montagu 2012-05-17 13:32:45 +03:00
Родитель 40d655dcb0
Коммит f749da5944
4 изменённых файлов: 102 добавлений и 0 удалений

Просмотреть файл

@ -23,6 +23,8 @@ random-if(Android) == basic-negcoord.xul basic-negcoord-ref.xul
!= text-shadow-selected-1.html text-shadow-selected-1-notref.html
== text-shadow-selected-1.html text-shadow-selected-1-ref.html
!= text-shadow-selected-2.html text-shadow-selected-2-notref.html
== text-shadow-selected-2.html text-shadow-selected-2-ref.html
# bug 692744
== text-shadow-on-space-1.html text-shadow-on-space-1-ref.html

Просмотреть файл

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function onload() {
var range = document.createRange();
range.selectNodeContents(document.getElementById("selectMe"));
var sel = window.getSelection();
sel.removeAllRanges();
sel.addRange(range);
}
</script>
<style type="text/css">
body {
background: lightGray;
}
div {
position: absolute;
top: 10px;
left: 10px;
font: 36px monospace;
color: white;
}
</style>
</head>
<!-- NOTREF case has selected text but the shadow is missing -->
<body onload="onload()">
<div id="selectMe">
<bdo dir="rtl">selected shadowed rtl text</bdo>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function onload() {
var range = document.createRange();
range.selectNodeContents(document.getElementById("selectMe"));
var sel = window.getSelection();
sel.removeAllRanges();
sel.addRange(range);
}
</script>
<style type="text/css">
body {
background: lightGray;
}
div {
position: absolute;
top: 10px;
left: 10px;
font: 36px monospace;
color: white;
}
</style>
</head>
<!-- REF case renders the selection first, using &nbsp; to avoid any show-through of glyph edges,
then the shadowed text on top of that -->
<body onload="onload()">
<div id="selectMe">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div style="text-shadow:1px 1px 1px red;">
<bdo dir="rtl">selected shadowed rtl text</bdo>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function onload() {
var range = document.createRange();
range.selectNodeContents(document.getElementById("selectMe"));
var sel = window.getSelection();
sel.removeAllRanges();
sel.addRange(range);
}
</script>
<style type="text/css">
body {
background: lightGray;
}
div {
position: absolute;
top: 10px;
left: 10px;
font: 36px monospace;
color: white;
}
</style>
</head>
<!-- test for bug 692752 - paint text shadow on top of selection highlight -->
<body onload="onload()">
<div style="text-shadow:1px 1px 1px red;" id="selectMe">
<bdo dir="rtl">selected shadowed rtl text</bdo>
</div>
</body>
</html>