mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
tests: Add a reftest to check that floats with percentage widths
properly push text down.
This commit is contained in:
parent
86314bd7a3
commit
4227a698d0
3 changed files with 58 additions and 0 deletions
|
@ -1644,6 +1644,18 @@
|
||||||
"url": "/_mozilla/css/floats_margin_collapse_with_clearance_a.html"
|
"url": "/_mozilla/css/floats_margin_collapse_with_clearance_a.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"css/floats_percentage_width_a.html": [
|
||||||
|
{
|
||||||
|
"path": "css/floats_percentage_width_a.html",
|
||||||
|
"references": [
|
||||||
|
[
|
||||||
|
"/_mozilla/css/floats_percentage_width_ref.html",
|
||||||
|
"=="
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"url": "/_mozilla/css/floats_percentage_width_a.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
"css/focus_selector.html": [
|
"css/focus_selector.html": [
|
||||||
{
|
{
|
||||||
"path": "css/focus_selector.html",
|
"path": "css/focus_selector.html",
|
||||||
|
@ -8420,6 +8432,18 @@
|
||||||
"url": "/_mozilla/css/floats_margin_collapse_with_clearance_a.html"
|
"url": "/_mozilla/css/floats_margin_collapse_with_clearance_a.html"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"css/floats_percentage_width_a.html": [
|
||||||
|
{
|
||||||
|
"path": "css/floats_percentage_width_a.html",
|
||||||
|
"references": [
|
||||||
|
[
|
||||||
|
"/_mozilla/css/floats_percentage_width_ref.html",
|
||||||
|
"=="
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"url": "/_mozilla/css/floats_percentage_width_a.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
"css/focus_selector.html": [
|
"css/focus_selector.html": [
|
||||||
{
|
{
|
||||||
"path": "css/focus_selector.html",
|
"path": "css/focus_selector.html",
|
||||||
|
|
18
tests/wpt/mozilla/tests/css/floats_percentage_width_a.html
Normal file
18
tests/wpt/mozilla/tests/css/floats_percentage_width_a.html
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title></title>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: none;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
float: left;
|
||||||
|
width: 100%;
|
||||||
|
height: 100px;
|
||||||
|
background: gold;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<link rel="match" href="floats_percentage_width_ref.html">
|
||||||
|
<div></div>X
|
||||||
|
|
16
tests/wpt/mozilla/tests/css/floats_percentage_width_ref.html
Normal file
16
tests/wpt/mozilla/tests/css/floats_percentage_width_ref.html
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title></title>
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: none;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
width: 100%;
|
||||||
|
height: 100px;
|
||||||
|
background: gold;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div></div>X
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue