mirror of
https://github.com/servo/servo
synced 2026-05-13 18:37:30 +02:00
Move canvas_linear_gradient_a.html to wpt reftests.
This commit is contained in:
@@ -31,7 +31,6 @@ flaky_cpu == append_style_a.html append_style_b.html
|
||||
== br.html br-ref.html
|
||||
== calc-basic.html calc-basic-ref.html
|
||||
== canvas_as_block_element_a.html canvas_as_block_element_ref.html
|
||||
== canvas_linear_gradient_a.html canvas_linear_gradient_ref.html
|
||||
== canvas_radial_gradient_a.html canvas_radial_gradient_ref.html
|
||||
== case-insensitive-font-family.html case-insensitive-font-family-ref.html
|
||||
== clear_generated_content_table_a.html clear_generated_content_table_ref.html
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
canvas {
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<canvas id="c" width="200" height="200">
|
||||
Your browser does not support the HTML5 canvas tag.</canvas>
|
||||
|
||||
<script>
|
||||
var c = document.getElementById("c");
|
||||
var ctx = c.getContext("2d");
|
||||
|
||||
var grd = ctx.createLinearGradient(10, 0, 190, 0);
|
||||
grd.addColorStop(0, "red");
|
||||
grd.addColorStop(1, "yellow");
|
||||
|
||||
ctx.fillStyle = grd;
|
||||
ctx.fillRect(10, 10, 180, 180);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,23 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
section, div {
|
||||
width: 180px;
|
||||
height: 180px;
|
||||
}
|
||||
section {
|
||||
padding: 10px;
|
||||
background-color: green;
|
||||
}
|
||||
div {
|
||||
background: linear-gradient(to right, red, yellow);
|
||||
}
|
||||
</style>
|
||||
<section><div></div></section>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user