зеркало из https://github.com/mozilla/gecko-dev.git
Bug 524173. Reftests demonstrating off-by-one bug in degenerate linear gradients on some platforms.
This commit is contained in:
Родитель
322217b08a
Коммит
9445215aa0
|
@ -0,0 +1,3 @@
|
|||
<!doctype html>
|
||||
<div style="width:300px; height: 150px; background: #0000ff"></div>
|
||||
<div style="width:300px; height: 150px; background: #ff0000"></div>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<body>
|
||||
<canvas id="canvas" width="300" height="300">
|
||||
<script>
|
||||
var ctx = document.getElementById('canvas').getContext('2d');
|
||||
|
||||
var grad = ctx.createLinearGradient(0,150,0,450);
|
||||
grad.addColorStop(0, '#0000ff');
|
||||
grad.addColorStop(0, '#ff0000');
|
||||
|
||||
ctx.fillStyle = grad;
|
||||
ctx.fillRect(0,0,300,300);
|
||||
</script>
|
||||
</body>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<body>
|
||||
<canvas id="canvas" width="300" height="300">
|
||||
<script>
|
||||
var ctx = document.getElementById('canvas').getContext('2d');
|
||||
|
||||
var grad = ctx.createLinearGradient(0,-150,0,150);
|
||||
grad.addColorStop(1, '#0000ff');
|
||||
grad.addColorStop(1, '#ff0000');
|
||||
|
||||
ctx.fillStyle = grad;
|
||||
ctx.fillRect(0,0,300,300);
|
||||
</script>
|
||||
</body>
|
|
@ -41,3 +41,7 @@ asserts-if(cocoaWidget,0-2) == size-change-1.html size-change-1-ref.html
|
|||
fails-if(Android) != text-font-lang.html text-font-lang-notref.html
|
||||
|
||||
== strokeText-path.html strokeText-path-ref.html
|
||||
|
||||
# gradient off-by-one, fails on windows and linux
|
||||
== linear-gradient-1a.html linear-gradient-1-ref.html
|
||||
fails-if(cocoaWidget) == linear-gradient-1b.html linear-gradient-1-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче