Expand the block size of the root flow's margin box to the viewport size

instead of expanding the block size of its border box.

Closes #9308.
This commit is contained in:
Patrick Walton 2016-01-26 17:53:34 -08:00
parent 55d4773311
commit 777c46fd3f
24 changed files with 83 additions and 76 deletions

View file

@ -4044,6 +4044,18 @@
"url": "/_mozilla/css/root_margin_collapse_a.html"
}
],
"css/root_margins_a.html": [
{
"path": "css/root_margins_a.html",
"references": [
[
"/_mozilla/css/root_margins_ref.html",
"=="
]
],
"url": "/_mozilla/css/root_margins_a.html"
}
],
"css/root_pseudo_a.html": [
{
"path": "css/root_pseudo_a.html",
@ -10136,6 +10148,18 @@
"url": "/_mozilla/css/root_margin_collapse_a.html"
}
],
"css/root_margins_a.html": [
{
"path": "css/root_margins_a.html",
"references": [
[
"/_mozilla/css/root_margins_ref.html",
"=="
]
],
"url": "/_mozilla/css/root_margins_a.html"
}
],
"css/root_pseudo_a.html": [
{
"path": "css/root_pseudo_a.html",

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="match" href="root_margins_ref.html">
<style>
div {
position: absolute;
width: 100px;
height: 100px;
background: steelblue;
bottom: 0;
left: 0;
}
</style>
<div>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<meta charset="utf-8">
<style>
html, body {
margin: 0;
}
div {
position: absolute;
width: 100px;
height: 100px;
background: steelblue;
bottom: 0;
left: 0;
}
</style>
<div>