Skip to content
Permalink
Browse files

Adding a reference test where a bigger area than the original

element is defined in script.

The test is now using wpt infrastructure (thanks Manishearth!).
  • Loading branch information
Adenilson committed Nov 2, 2015
1 parent 5c11c88 commit 4fdf73d1055a31f7acef69fa1152615b6aa8e840
@@ -4153,6 +4153,18 @@
]
},
"testharness": {
"css/canvas_over_area.html": [
{
"path": "css/canvas_over_area.html",
"references": [
[
"/_mozilla/css/canvas_over_area_ref.html",
"=="
]
],
"url": "/_mozilla/css/canvas_over_area.html"
}
],
"css/test_variable_legal_values.html": [
{
"path": "css/test_variable_legal_values.html",
@@ -8808,4 +8820,4 @@
"rev": null,
"url_base": "/_mozilla/",
"version": 2
}
}
@@ -0,0 +1,32 @@
<style>

#base {
background-color: red;
height: 100px;
width: 100px;
}

#painted {
width: 100px;
height: 100px;
position: relative;
top: -100px;
}
</style>

<div id="base"></div>
<canvas id="painted"></canvas>


<script>
onload = function() {
var obj = document.getElementById("painted");
obj.width = 500;
obj.height = 500;
var context = obj.getContext("2d");
context.save();
context.fillStyle = "green";
context.fillRect(0, 0, 500, 500);
context.restore();
};
</script>
@@ -0,0 +1,11 @@
<style>

#base {
background-color: green;
height: 100px;
width: 100px;
}

</style>

<div id="base"></div>

0 comments on commit 4fdf73d

Please sign in to comment.
You can’t perform that action at this time.