Move block_formatting_context_cleared_float_a.html to wpt reftests.

This commit is contained in:
Ms2ger 2015-10-14 08:43:21 +02:00
parent fab0aa2723
commit 0c2c01f84d
4 changed files with 25 additions and 1 deletions

View file

@ -447,6 +447,18 @@
"url": "/_mozilla/css/block_formatting_context_a.html"
}
],
"css/block_formatting_context_cleared_float_a.html": [
{
"path": "css/block_formatting_context_cleared_float_a.html",
"references": [
[
"/_mozilla/css/block_formatting_context_cleared_float_ref.html",
"=="
]
],
"url": "/_mozilla/css/block_formatting_context_cleared_float_a.html"
}
],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",
@ -1676,6 +1688,18 @@
"url": "/_mozilla/css/block_formatting_context_a.html"
}
],
"css/block_formatting_context_cleared_float_a.html": [
{
"path": "css/block_formatting_context_cleared_float_a.html",
"references": [
[
"/_mozilla/css/block_formatting_context_cleared_float_ref.html",
"=="
]
],
"url": "/_mozilla/css/block_formatting_context_cleared_float_a.html"
}
],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<!--
Tests that block formatting context inline-size speculation works when the floats that impact
the block formatting context are cleared.
-->
<link rel=match href=block_formatting_context_cleared_float_ref.html>
<style>
#a {
background: silver;
height: 150px;
width: 150px;
float: right;
clear: right;
}
#b {
background: goldenrod;
height: 300px;
overflow: hidden;
}
</style>
</head>
<body>
<div id=a></div>
<div id=b></div>
</body>
</html>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<!--
Tests that block formatting context inline-size speculation works when the floats that impact
the block formatting context are cleared.
-->
<style>
#a {
background: silver;
height: 150px;
width: 150px;
float: right;
}
#b {
background: goldenrod;
height: 300px;
overflow: hidden;
}
</style>
</head>
<body>
<div id=a></div>
<div id=b></div>
</body>
</html>