--HG--
extra : transplant_source : %B7hB%BDV9%24%C6%8Cc%FA%DF%97%5D-2a%14%93%3C
This commit is contained in:
Karl Tomlinson 2012-08-14 23:47:05 +12:00
Родитель 42b0bb67aa
Коммит 6f9f5ac524
3 изменённых файлов: 118 добавлений и 1 удалений

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

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>glyph clipping (reference)</title>
<style>
#clip { position: absolute;
overflow: hidden;
font-size: 16px;
width: 500px;
height: 300px;}
/* Offsets keep the text far enough away from clip boundaries so that
cairo knows the text is within the clip. Non-unit alpha color makes
the bug show even without antialiasing. */
#text { position: absolute;
left: 100px;
top: 100px;
color: rgba(0,0,0,0.4)}
#cover { position: absolute;
top: 90px;
left: 120px;
height: 50px;
width: 60px;
background: transparent; }
#mod { position: absolute;
top: 400px;
left: 0px;
height: 2000px;
width: 600px;
background: transparent; }
</style>
</head>
<body>
<div id="clip">
<div id="text">
Some text that was</br>
initially partially covered.</br>
</div>
</div>
<div id="cover">
</div>
<div id="mod">
</div>
</body>
<script>
scrollTo(0,1);
</script>
</html>

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

@ -0,0 +1,69 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>glyph clipping (test)</title>
<style>
#clip { position: absolute;
overflow: hidden;
font-size: 16px;
width: 500px;
height: 300px;}
/* Offsets keep the text far enough away from clip boundaries so that
cairo knows the text is within the clip. Non-unit alpha color makes
the bug show even without antialiasing. */
#text { position: absolute;
left: 100px;
top: 100px;
color: rgba(0,0,0,0.4)}
#cover { position: absolute;
top: 90px;
left: 120px;
height: 50px;
width: 60px;
background: green; }
#mod { position: absolute;
top: 400px;
left: 0px;
height: 2000px;
width: 600px;
background: green; }
</style>
<script>
function doPaint()
{
window.addEventListener("MozAfterPaint", doScroll, false);
var cover = document.getElementById("cover");
cover.style.background = "transparent";
var mod = document.getElementById("mod");
mod.style.background = "transparent";
}
function doScroll()
{
window.removeEventListener("MozAfterPaint", doScroll, false);
window.addEventListener("MozAfterPaint", endTest, false);
scrollTo(0,1);
}
function endTest()
{
document.documentElement.removeAttribute("class");
}
document.addEventListener("MozReftestInvalidate", doPaint, false);
</script>
</head>
<body>
<div id="clip">
<div id="text">
Some text that was</br>
initially partially covered.</br>
</div>
</div>
<div id="cover">
</div>
<div id="mod">
</div>
</body>
</html>

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

@ -1,3 +1,4 @@
# 468496-1 will also detect bugs in video drivers.
fails-if(/Mac\x20OS\x20X\x2010\.5/.test(http.oscpu)) == 468496-1.html 468496-1-ref.html # bug 486761, 660740
# fails-if(/Mac\x20OS\x20X\x2010\.5/.test(http.oscpu)) == 468496-1.html 468496-1-ref.html # bug 486761, 660740
== 611498-1.html 611498-ref.html
fails-if(http.platform=="X11") == 709477-1.html 709477-1-ref.html