mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Move hide_and_show.html to wpt reftests.
This commit is contained in:
parent
19c4991c55
commit
4466fc3537
4 changed files with 25 additions and 1 deletions
|
@ -1591,6 +1591,18 @@
|
|||
"url": "/_mozilla/css/iframe/hide_after_load.html"
|
||||
}
|
||||
],
|
||||
"css/iframe/hide_and_show.html": [
|
||||
{
|
||||
"path": "css/iframe/hide_and_show.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/iframe/hide_and_show_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/iframe/hide_and_show.html"
|
||||
}
|
||||
],
|
||||
"css/image_rendering_auto_a.html": [
|
||||
{
|
||||
"path": "css/image_rendering_auto_a.html",
|
||||
|
@ -7056,6 +7068,18 @@
|
|||
"url": "/_mozilla/css/iframe/hide_after_load.html"
|
||||
}
|
||||
],
|
||||
"css/iframe/hide_and_show.html": [
|
||||
{
|
||||
"path": "css/iframe/hide_and_show.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/iframe/hide_and_show_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/iframe/hide_and_show.html"
|
||||
}
|
||||
],
|
||||
"css/image_rendering_auto_a.html": [
|
||||
{
|
||||
"path": "css/image_rendering_auto_a.html",
|
||||
|
|
21
tests/wpt/mozilla/tests/css/iframe/hide_and_show.html
Normal file
21
tests/wpt/mozilla/tests/css/iframe/hide_and_show.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<link rel=match href=hide_and_show_ref.html>
|
||||
<style type="text/css">
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
iframe {
|
||||
border: 0;
|
||||
}
|
||||
</style>
|
||||
<body id="container">
|
||||
<iframe id="iframe" class="hidden" src="data:text/html,%3Cbody%20style%3D%22background%3Agreen%3B%20%22%3E"></iframe>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
window.onload = function() {
|
||||
document.getElementById("iframe").classList.remove("hidden");
|
||||
document.documentElement.classList.remove("reftest-wait");
|
||||
}
|
||||
</script>
|
||||
</html>
|
13
tests/wpt/mozilla/tests/css/iframe/hide_and_show_ref.html
Normal file
13
tests/wpt/mozilla/tests/css/iframe/hide_and_show_ref.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style type="text/css">
|
||||
div {
|
||||
width: 300px;
|
||||
height: 150px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue