mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1050788 - Add test for complex path that is entirely clipped out. r=roc
--HG-- extra : rebase_source : 3844baef99a92332b0bc4d1b382596f7aea51f40
This commit is contained in:
parent
86d55eb90d
commit
3f37812157
34
layout/reftests/bugs/1050788-1.html
Normal file
34
layout/reftests/bugs/1050788-1.html
Normal file
@ -0,0 +1,34 @@
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script>
|
||||
function doTest() {
|
||||
var c = document.getElementById('c');
|
||||
var ctx = c.getContext('2d');
|
||||
|
||||
ctx.transform(1, 0, 0, 1, 0.5, 0.5);
|
||||
|
||||
ctx.moveTo(0,0);
|
||||
ctx.lineTo(100,0);
|
||||
ctx.lineTo(100, 100);
|
||||
ctx.lineTo(0,100);
|
||||
ctx.closePath();
|
||||
|
||||
ctx.moveTo(0,0);
|
||||
ctx.lineTo(100,0);
|
||||
ctx.lineTo(100, 100);
|
||||
ctx.lineTo(0,100);
|
||||
ctx.closePath();
|
||||
|
||||
ctx.clip('evenodd');
|
||||
|
||||
ctx.fillStyle = 'red';
|
||||
ctx.fillRect(0,0,400,400);
|
||||
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="doTest()">
|
||||
<canvas id="c" width="400" height="400"></canvas>
|
||||
</body>
|
||||
</body></html>
|
@ -1821,5 +1821,6 @@ pref(browser.display.use_document_fonts,0) == 1022481-1.html 1022481-1-ref.html
|
||||
== 1042104-1.html 1042104-1-ref.html
|
||||
== 1044198-1.html 1044198-1-ref.html
|
||||
== 1049499-1.html 1049499-1-ref.html
|
||||
== 1050788-1.html about:blank
|
||||
== 1053035-1-flex.html 1053035-1-ref.html
|
||||
test-pref(layout.css.grid.enabled,true) == 1053035-1-grid.html 1053035-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user