mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Move hide_after_load.html to wpt reftests.
This commit is contained in:
parent
833cd524e0
commit
19c4991c55
5 changed files with 25 additions and 1 deletions
|
@ -1579,6 +1579,18 @@
|
|||
"url": "/_mozilla/css/iframe/bg_color.html"
|
||||
}
|
||||
],
|
||||
"css/iframe/hide_after_load.html": [
|
||||
{
|
||||
"path": "css/iframe/hide_after_load.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/iframe/hide_after_load_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/iframe/hide_after_load.html"
|
||||
}
|
||||
],
|
||||
"css/image_rendering_auto_a.html": [
|
||||
{
|
||||
"path": "css/image_rendering_auto_a.html",
|
||||
|
@ -7032,6 +7044,18 @@
|
|||
"url": "/_mozilla/css/iframe/bg_color.html"
|
||||
}
|
||||
],
|
||||
"css/iframe/hide_after_load.html": [
|
||||
{
|
||||
"path": "css/iframe/hide_after_load.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/iframe/hide_after_load_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/iframe/hide_after_load.html"
|
||||
}
|
||||
],
|
||||
"css/image_rendering_auto_a.html": [
|
||||
{
|
||||
"path": "css/image_rendering_auto_a.html",
|
||||
|
|
19
tests/wpt/mozilla/tests/css/iframe/hide_after_load.html
Normal file
19
tests/wpt/mozilla/tests/css/iframe/hide_after_load.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<link rel=match href=hide_after_load_ref.html>
|
||||
<body style="background: green;">
|
||||
<iframe style="border: 0" src="hide_after_load_inner_frame.html"></iframe>
|
||||
<script type="text/javascript">
|
||||
var iframe = document.getElementsByTagName('iframe')[0];
|
||||
iframe.onload = function() {
|
||||
iframe.style.display = "none";
|
||||
|
||||
// We do this in a timeout, so that the compositor has a chance
|
||||
// to update the layer tree.
|
||||
setTimeout(function() {
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
}, 0);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body style="background: red;">
|
||||
hidden content
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body style="background: green;"> </body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue