mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Move overconstrained_block.html to wpt reftests.
This commit is contained in:
parent
facee849c2
commit
ae6585da88
4 changed files with 30 additions and 6 deletions
|
@ -3247,6 +3247,18 @@
|
|||
"url": "/_mozilla/css/outset_blackborder.html"
|
||||
}
|
||||
],
|
||||
"css/overconstrained_block.html": [
|
||||
{
|
||||
"path": "css/overconstrained_block.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/overconstrained_block_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/overconstrained_block.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_auto.html": [
|
||||
{
|
||||
"path": "css/overflow_auto.html",
|
||||
|
@ -8958,6 +8970,18 @@
|
|||
"url": "/_mozilla/css/outset_blackborder.html"
|
||||
}
|
||||
],
|
||||
"css/overconstrained_block.html": [
|
||||
{
|
||||
"path": "css/overconstrained_block.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/overconstrained_block_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/overconstrained_block.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_auto.html": [
|
||||
{
|
||||
"path": "css/overflow_auto.html",
|
||||
|
|
19
tests/wpt/mozilla/tests/css/overconstrained_block.html
Normal file
19
tests/wpt/mozilla/tests/css/overconstrained_block.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Block with over-contrained margins+borders+padding+width = containing block width</title>
|
||||
<link rel=match href=overconstrained_block_ref.html>
|
||||
<style>
|
||||
body { width: 300px; margin: 0 0 0 400px }
|
||||
div:nth-child(even) { direction: rtl }
|
||||
div:nth-child(1) p, div:nth-child(2) p { margin: 20px 70px }
|
||||
div:nth-child(3) p, div:nth-child(4) p { margin: 20px 120px }
|
||||
p { background: green; width: 200px; height: 100px }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><p></p></div>
|
||||
<div><p></p></div>
|
||||
<div><p></p></div>
|
||||
<div><p></p></div>
|
||||
</body>
|
||||
</html>
|
16
tests/wpt/mozilla/tests/css/overconstrained_block_ref.html
Normal file
16
tests/wpt/mozilla/tests/css/overconstrained_block_ref.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Block with over-contrained margins+borders+padding+width = containing block width</title>
|
||||
<style>
|
||||
body { width: 300px; margin: 0; }
|
||||
p { background: green; width: 200px; height: 100px; margin: 0; position: absolute }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p style="top: 20px; left: 470px"></p>
|
||||
<p style="top: 140px; left: 430px"></p>
|
||||
<p style="top: 260px; left: 520px"></p>
|
||||
<!-- https://github.com/servo/servo/issues/8721: should be left: 380px -->
|
||||
<p style="top: 380px; left: 360px"></p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue