зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1291528 - Add reftest to ensure that linear gradient drawing paths agree - r=mstange
This commit is contained in:
Родитель
4650e9bcec
Коммит
42449e085d
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<!--
|
||||
This CSS will hit the non-optimised linear gradient painting path, since
|
||||
the dirty rect of div.inner will be the same as the destination rect,
|
||||
making cellContainsFill true in PaintGradient() and skipping the optimised
|
||||
path.
|
||||
-->
|
||||
<style type="text/css">
|
||||
div.outer {
|
||||
border: 2px solid grey;
|
||||
padding: 0;
|
||||
height: 18.5px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
div.inner {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
height: 18.5px;
|
||||
width: 100px;
|
||||
background: linear-gradient(to top, red, blue);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<!--
|
||||
This test makes sure that linear gradient painting paths agree around
|
||||
non-pixel aligned dimensions: namely, the direct path which draws the
|
||||
linear gradient repeatedly; and the optimised path which converts the
|
||||
original gradient into a repeating gradient and fills the whole
|
||||
destination in one go.
|
||||
|
||||
This CSS will hit the optimised linear gradient painting path, since the
|
||||
dirty rect will be the size of the whole box (including border), but the
|
||||
destination is only the size of the rect within the border.
|
||||
-->
|
||||
<style type="text/css">
|
||||
div {
|
||||
border: 2px solid grey;
|
||||
background: linear-gradient(to top, red, blue);
|
||||
height: 18.5px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1962,6 +1962,7 @@ random-if(!winWidget) == 1273154-2.html 1273154-2-ref.html # depends on Windows
|
|||
!= 1276161-1b.html 1276161-1-notref.html
|
||||
!= 1276161-1a.html 1276161-1b.html
|
||||
== 1275411-1.html 1275411-1-ref.html
|
||||
fuzzy(8,1900) == 1291528.html 1291528-ref.html
|
||||
# Buttons in 2 pages have different position and the rendering result can be
|
||||
# different, but they should use the same button style and the background color
|
||||
# should be same. |fuzzy()| here allows the difference in border, but not
|
||||
|
|
Загрузка…
Ссылка в новой задаче