mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
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:
commit
d1ff330ba8
24 changed files with 83 additions and 76 deletions
|
@ -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",
|
||||
|
|
15
tests/wpt/mozilla/tests/css/root_margins_a.html
Normal file
15
tests/wpt/mozilla/tests/css/root_margins_a.html
Normal 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>
|
||||
|
17
tests/wpt/mozilla/tests/css/root_margins_ref.html
Normal file
17
tests/wpt/mozilla/tests/css/root_margins_ref.html
Normal 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>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue