Move incremental_float_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-19 18:34:07 -04:00
parent b9c502ca3f
commit a2a40068ab
4 changed files with 25 additions and 1 deletions

View file

@ -695,6 +695,18 @@
"url": "/_mozilla/css/img_size_a.html"
}
],
"css/incremental_float_a.html": [
{
"path": "css/incremental_float_a.html",
"references": [
[
"/_mozilla/css/incremental_float_ref.html",
"=="
]
],
"url": "/_mozilla/css/incremental_float_a.html"
}
],
"css/inline_block_border_a.html": [
{
"path": "css/inline_block_border_a.html",
@ -4296,6 +4308,18 @@
"url": "/_mozilla/css/img_size_a.html"
}
],
"css/incremental_float_a.html": [
{
"path": "css/incremental_float_a.html",
"references": [
[
"/_mozilla/css/incremental_float_ref.html",
"=="
]
],
"url": "/_mozilla/css/incremental_float_a.html"
}
],
"css/inline_block_border_a.html": [
{
"path": "css/inline_block_border_a.html",

View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<link rel='match' href='incremental_float_ref.html'>
<style>
nav.floaty {
float: left;
}
section {
clear: both;
position: relative;
}
</style>
</head>
<body>
<section>
<nav>This floats</nav>
<div>This doesn't</div>
</section>
<section>
<nav>This floats</nav>
<div style="overflow: hidden;">This is a block formatting context</div>
</section>
<section>
<nav>This floats</nav>
<div style="position: absolute; top: 0; left: 0; width: 100px; height: 100px;">
This is abspos
</div>
</section>
<script>
var elements = document.getElementsByTagName('nav');
for (var i = 0; i < elements.length; i++)
elements[i].setAttribute('class', 'floaty');
</script>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<style>
nav {
float: left;
}
section {
clear: both;
position: relative;
}
</style>
</head>
<body>
<section>
<nav>This floats</nav>
<div>This doesn't</div>
</section>
<section>
<nav>This floats</nav>
<div style="overflow: hidden;">This is a block formatting context</div>
</section>
<section>
<nav>This floats</nav>
<div style="position: absolute; top: 0; left: 0; width: 100px; height: 100px;">
This is abspos
</div>
</section>
</body>
</html>