зеркало из https://github.com/mozilla/gecko-dev.git
Tests for bug 755994, r=roc
This commit is contained in:
Родитель
40d655dcb0
Коммит
f749da5944
|
@ -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 to avoid any show-through of glyph edges,
|
||||
then the shadowed text on top of that -->
|
||||
<body onload="onload()">
|
||||
<div id="selectMe">
|
||||
|
||||
</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>
|
Загрузка…
Ссылка в новой задаче