mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 716439; some tweaks to reftests. r=roc
This commit is contained in:
parent
9b7506b604
commit
0d3b3a6bd6
@ -9,6 +9,6 @@ canvas {
|
||||
<script>
|
||||
var canvas = document.getElementById("canvas");
|
||||
var cx = canvas.getContext("2d");
|
||||
cx.fillStyle="green";
|
||||
cx.fillStyle="lime";
|
||||
cx.fillRect(0, 0, 200, 100);
|
||||
</script>
|
||||
|
@ -7,4 +7,4 @@ img {
|
||||
border-radius: 25px;
|
||||
}
|
||||
</style>
|
||||
<img src="../pixel-rounding/green-25x25.png" alt="">
|
||||
<img src="../pixel-rounding/lime-25x25.png" alt="">
|
||||
|
@ -2,7 +2,7 @@
|
||||
<title>Test for clipping of border-radius</title>
|
||||
<style>
|
||||
div {
|
||||
background: green;
|
||||
background: lime;
|
||||
height: 100px;
|
||||
width: 200px;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ body > div {
|
||||
overflow: hidden;
|
||||
}
|
||||
body > div > div {
|
||||
background: green;
|
||||
background: lime;
|
||||
height: 100px;
|
||||
width: 200px;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<title>Test for clipping of border-radius</title>
|
||||
<style>
|
||||
div {
|
||||
background: green;
|
||||
background: lime;
|
||||
height: 100px;
|
||||
width: 200px;
|
||||
border-radius: 25px;
|
||||
|
@ -15,6 +15,6 @@ canvas {
|
||||
<script>
|
||||
var canvas = document.getElementById("canvas");
|
||||
var cx = canvas.getContext("2d");
|
||||
cx.fillStyle="green";
|
||||
cx.fillStyle="lime";
|
||||
cx.fillRect(0, 0, 200, 100);
|
||||
</script>
|
||||
|
@ -13,4 +13,4 @@ img {
|
||||
border-radius: 25px 17px 14px 18px / 12px 15px 18px 17px;
|
||||
}
|
||||
</style>
|
||||
<img src="../pixel-rounding/green-25x25.png" alt="">
|
||||
<img src="../pixel-rounding/lime-25x25.png" alt="">
|
||||
|
@ -15,7 +15,7 @@ body > div {
|
||||
border-radius: 25px 17px 14px 18px / 12px 15px 18px 17px;
|
||||
}
|
||||
body > div > div {
|
||||
background: green;
|
||||
background: lime;
|
||||
height: 100px;
|
||||
width: 200px;
|
||||
margin-left: -5px;
|
||||
|
@ -3,7 +3,7 @@
|
||||
<style>
|
||||
div {
|
||||
display: inline-block;
|
||||
background: green;
|
||||
background: lime;
|
||||
margin: 18px 19px 21px 25px;
|
||||
/* border + padding: 1px 2px 4px 8px */
|
||||
height: 100px;
|
||||
|
@ -14,6 +14,6 @@ canvas {
|
||||
<script>
|
||||
var canvas = document.getElementById("canvas");
|
||||
var cx = canvas.getContext("2d");
|
||||
cx.fillStyle="green";
|
||||
cx.fillStyle="lime";
|
||||
cx.fillRect(0, 0, 200, 100);
|
||||
</script>
|
||||
|
@ -12,4 +12,4 @@ img {
|
||||
border-radius: 17px 15px 12px 10px / 11px 14px 14px 13px;
|
||||
}
|
||||
</style>
|
||||
<img src="../pixel-rounding/green-25x25.png" alt="">
|
||||
<img src="../pixel-rounding/lime-25x25.png" alt="">
|
||||
|
@ -15,6 +15,6 @@ canvas {
|
||||
<script>
|
||||
var canvas = document.getElementById("canvas");
|
||||
var cx = canvas.getContext("2d");
|
||||
cx.fillStyle="green";
|
||||
cx.fillStyle="lime";
|
||||
cx.fillRect(0, 0, 200, 100);
|
||||
</script>
|
||||
|
@ -13,4 +13,4 @@ img {
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
<div><img src="../pixel-rounding/green-25x25.png" alt=""></div>
|
||||
<div><img src="../pixel-rounding/lime-25x25.png" alt=""></div>
|
||||
|
@ -12,7 +12,7 @@ body > div > div {
|
||||
overflow: hidden;
|
||||
width: 200px;
|
||||
height: 100px;
|
||||
background: green;
|
||||
background: lime;
|
||||
}
|
||||
</style>
|
||||
<div><div></div></div>
|
||||
|
@ -17,7 +17,7 @@
|
||||
overflow: hidden;
|
||||
width: 200px;
|
||||
height: 100px;
|
||||
background: green;
|
||||
background: lime;
|
||||
}
|
||||
|
||||
#contain > div.spot {
|
||||
@ -45,9 +45,9 @@ places that should match the background of what they're on.
|
||||
<div class="spot" style="top: 97px; left: 19px; background: white"></div>
|
||||
<div class="spot" style="top: 82px; left: 1px; background: white"></div>
|
||||
|
||||
<div class="spot" style="top: 10px; left: 8px; background: green"></div>
|
||||
<div class="spot" style="top: 89px; left: 8px; background: green"></div>
|
||||
<div class="spot" style="top: 10px; left: 191px; background: green"></div>
|
||||
<div class="spot" style="top: 89px; left: 191px; background: green"></div>
|
||||
<div class="spot" style="top: 10px; left: 8px; background: lime"></div>
|
||||
<div class="spot" style="top: 89px; left: 8px; background: lime"></div>
|
||||
<div class="spot" style="top: 10px; left: 191px; background: lime"></div>
|
||||
<div class="spot" style="top: 89px; left: 191px; background: lime"></div>
|
||||
|
||||
</div>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<script>
|
||||
var canvas = document.getElementById("canvas");
|
||||
var cx = canvas.getContext("2d");
|
||||
cx.fillStyle="green";
|
||||
cx.fillStyle="lime";
|
||||
cx.fillRect(0, 0, 200, 100);
|
||||
</script>
|
||||
|
||||
@ -47,9 +47,9 @@ places that should match the background of what they're on.
|
||||
<div class="spot" style="top: 97px; left: 19px; background: white"></div>
|
||||
<div class="spot" style="top: 82px; left: 1px; background: white"></div>
|
||||
|
||||
<div class="spot" style="top: 10px; left: 8px; background: green"></div>
|
||||
<div class="spot" style="top: 89px; left: 8px; background: green"></div>
|
||||
<div class="spot" style="top: 10px; left: 191px; background: green"></div>
|
||||
<div class="spot" style="top: 89px; left: 191px; background: green"></div>
|
||||
<div class="spot" style="top: 10px; left: 8px; background: lime"></div>
|
||||
<div class="spot" style="top: 89px; left: 8px; background: lime"></div>
|
||||
<div class="spot" style="top: 10px; left: 191px; background: lime"></div>
|
||||
<div class="spot" style="top: 89px; left: 191px; background: lime"></div>
|
||||
|
||||
</div>
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
</style>
|
||||
<div id="contain">
|
||||
<div><img src="../pixel-rounding/green-25x25.png" alt=""></div>
|
||||
<div><img src="../pixel-rounding/lime-25x25.png" alt=""></div>
|
||||
|
||||
<!--
|
||||
This is just like the test, except we'll add a bunch of spots in various
|
||||
@ -43,9 +43,9 @@ places that should match the background of what they're on.
|
||||
<div class="spot" style="top: 97px; left: 19px; background: white"></div>
|
||||
<div class="spot" style="top: 82px; left: 1px; background: white"></div>
|
||||
|
||||
<div class="spot" style="top: 10px; left: 8px; background: green"></div>
|
||||
<div class="spot" style="top: 89px; left: 8px; background: green"></div>
|
||||
<div class="spot" style="top: 10px; left: 191px; background: green"></div>
|
||||
<div class="spot" style="top: 89px; left: 191px; background: green"></div>
|
||||
<div class="spot" style="top: 10px; left: 8px; background: lime"></div>
|
||||
<div class="spot" style="top: 89px; left: 8px; background: lime"></div>
|
||||
<div class="spot" style="top: 10px; left: 191px; background: lime"></div>
|
||||
<div class="spot" style="top: 89px; left: 191px; background: lime"></div>
|
||||
|
||||
</div>
|
||||
|
@ -41,20 +41,20 @@ fails == clipping-1.html clipping-1-ref.html # background color should completel
|
||||
|
||||
# Tests for clipping the contents of replaced elements and overflow!=visible
|
||||
!= clipping-4-ref.html clipping-4-notref.html
|
||||
fails-if(cocoaWidget) == clipping-4-canvas.html clipping-4-ref.html
|
||||
fails-if(Android) == clipping-4-image.html clipping-4-ref.html
|
||||
fuzzy-if(true,1,20) fuzzy-if(cocoaWidget,1,180) fuzzy-if(Android,7,167) == clipping-4-canvas.html clipping-4-ref.html
|
||||
fuzzy-if(Android,5,54) == clipping-4-image.html clipping-4-ref.html
|
||||
== clipping-4-overflow-hidden.html clipping-4-ref.html
|
||||
== clipping-5-canvas.html clipping-5-refc.html
|
||||
== clipping-5-image.html clipping-5-refi.html
|
||||
== clipping-5-overflow-hidden.html clipping-5-ref.html
|
||||
fails-if(Android) == clipping-5-refi.html clipping-5-ref.html
|
||||
fails-if(cocoaWidget) == clipping-5-refc.html clipping-5-ref.html
|
||||
fuzzy-if(Android,5,21) == clipping-5-refi.html clipping-5-ref.html
|
||||
fuzzy-if(true,1,7) fuzzy-if(cocoaWidget,1,99) fuzzy-if(Android,7,89) == clipping-5-refc.html clipping-5-ref.html
|
||||
== clipping-and-zindex-1.html clipping-and-zindex-1-ref.html
|
||||
== intersecting-clipping-1-canvas.html intersecting-clipping-1-refc.html
|
||||
fuzzy-if(cocoaWidget,1,4) == intersecting-clipping-1-canvas.html intersecting-clipping-1-refc.html
|
||||
== intersecting-clipping-1-image.html intersecting-clipping-1-refi.html
|
||||
== intersecting-clipping-1-overflow-hidden.html intersecting-clipping-1-ref.html
|
||||
fails-if(Android) == intersecting-clipping-1-refi.html intersecting-clipping-1-ref.html
|
||||
fails-if(cocoaWidget) == intersecting-clipping-1-refc.html intersecting-clipping-1-ref.html
|
||||
fuzzy-if(Android,5,105) == intersecting-clipping-1-refi.html intersecting-clipping-1-ref.html
|
||||
fuzzy-if(true,1,33) fuzzy-if(cocoaWidget,1,332) fuzzy-if(Android,7,296) == intersecting-clipping-1-refc.html intersecting-clipping-1-ref.html
|
||||
|
||||
# Inheritance
|
||||
== inherit-1.html inherit-1-ref.html # border-radius shouldn't inherit
|
||||
@ -71,10 +71,10 @@ fails-if(Android) == scrollbar-clamping-1.html scrollbar-clamping-1-ref.html
|
||||
fails-if(Android) == scrollbar-clamping-2.html scrollbar-clamping-2-ref.html
|
||||
|
||||
# Test for bad corner joins.
|
||||
== corner-joins-1.xhtml corner-joins-1-ref.xhtml
|
||||
fuzzy-if(true,1,1) == corner-joins-1.xhtml corner-joins-1-ref.xhtml
|
||||
random-if(winWidget) HTTP(..) == corner-joins-2.xhtml corner-joins-2-ref.xhtml
|
||||
|
||||
== scroll-1.html scroll-1-ref.html # see bug 602892
|
||||
fuzzy-if(Android,7,144) == scroll-1.html scroll-1-ref.html # see bug 602892
|
||||
|
||||
== zero-radius-clip-1.html zero-radius-clip-ref.html
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
.greendiv {
|
||||
width:300px;
|
||||
height:230px;
|
||||
background-color:#008000;
|
||||
background-color:#00ff00;
|
||||
position:absolute;
|
||||
}
|
||||
#nrcDiv0 {
|
||||
|
@ -44,7 +44,7 @@ canvas {
|
||||
|
||||
function drawShapes(elName) {
|
||||
var ctxt = document.getElementById(elName).getContext('2d');
|
||||
ctxt.fillStyle = '#008000';
|
||||
ctxt.fillStyle = '#00ff00';
|
||||
ctxt.fillRect(0, 0, 300, 230);
|
||||
}
|
||||
</script>
|
||||
|
@ -1690,7 +1690,7 @@ needs-focus != 703186-1.html 703186-2.html
|
||||
== 714519-1-q.html 714519-1-ref.html
|
||||
== 714519-2-as.html 714519-2-ref.html
|
||||
== 714519-2-q.html 714519-2-ref.html
|
||||
fuzzy-if(d2d,1,19) fuzzy-if(cocoaWidget,1,170) == 718521.html 718521-ref.html
|
||||
fuzzy-if(true,1,21) fuzzy-if(cocoaWidget,1,170) fuzzy-if(Android,7,147) == 718521.html 718521-ref.html
|
||||
== 720987.html 720987-ref.html
|
||||
== 722923-1.html 722923-1-ref.html
|
||||
== 723484-1.html 723484-1-ref.html
|
||||
|
BIN
layout/reftests/pixel-rounding/lime-25x25.png
Normal file
BIN
layout/reftests/pixel-rounding/lime-25x25.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 203 B |
Loading…
Reference in New Issue
Block a user