Auto merge of #9438 - pcwalton:root-margins, r=mbrubeck

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.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9438)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-01-30 03:55:24 +05:30
commit d1ff330ba8
24 changed files with 83 additions and 76 deletions

View file

@ -4056,6 +4056,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",
@ -10160,6 +10172,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>