mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Reftest for deferred paint.
This commit is contained in:
parent
fd9cd2f103
commit
2673fcd750
3 changed files with 72 additions and 0 deletions
|
@ -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",
|
||||||
|
|
15
tests/wpt/mozilla/tests/css/deferred-paint-ref.html
Normal file
15
tests/wpt/mozilla/tests/css/deferred-paint-ref.html
Normal 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>
|
21
tests/wpt/mozilla/tests/css/deferred-paint.html
Normal file
21
tests/wpt/mozilla/tests/css/deferred-paint.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue