Reftest for deferred paint.

This commit is contained in:
Emilio Cobos Álvarez 2016-08-30 16:42:16 -07:00
parent fd9cd2f103
commit 2673fcd750
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 72 additions and 0 deletions

View file

@ -1356,6 +1356,18 @@
"url": "/_mozilla/css/data_img_a.html" "url": "/_mozilla/css/data_img_a.html"
} }
], ],
"css/deferred-paint.html": [
{
"path": "css/deferred-paint.html",
"references": [
[
"/_mozilla/css/deferred-paint-ref.html",
"=="
]
],
"url": "/_mozilla/css/deferred-paint.html"
}
],
"css/direction_style_caching.html": [ "css/direction_style_caching.html": [
{ {
"path": "css/direction_style_caching.html", "path": "css/direction_style_caching.html",
@ -10690,6 +10702,30 @@
"url": "/_mozilla/css/data_img_a.html" "url": "/_mozilla/css/data_img_a.html"
} }
], ],
"css/deferred-paint-ref.html": [
{
"path": "css/deferred-paint-ref.html",
"references": [
[
"/_mozilla/css/deferred-paint-ref.html",
"=="
]
],
"url": "/_mozilla/css/deferred-paint-ref.html"
}
],
"css/deferred-paint.html": [
{
"path": "css/deferred-paint.html",
"references": [
[
"/_mozilla/css/deferred-paint-ref.html",
"=="
]
],
"url": "/_mozilla/css/deferred-paint.html"
}
],
"css/direction_style_caching.html": [ "css/direction_style_caching.html": [
{ {
"path": "css/direction_style_caching.html", "path": "css/direction_style_caching.html",

View file

@ -0,0 +1,15 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS test reference</title>
<link rel="match" href="deferred-paint-ref.html">
<style>
.container div {
width: 50px;
height: 50px;
background: blue;
}
</style>
<div class="container">
<div></div>
<div></div>
</div>

View file

@ -0,0 +1,21 @@
<!doctype html>
<meta charset="utf-8">
<title>A deferred paint gets properly re-scheduled</title>
<link rel="match" href="deferred-paint-ref.html">
<style>
.container div {
width: 50px;
height: 50px;
background: blue;
}
</style>
<div class="container">
<div></div>
</div>
<script>
let container = document.querySelector('.container');
window.onload = function() {
container.insertBefore(document.createElement('div'), container.firstChild);
container.firstChild.offsetTop;
}
</script>