Update web-platform-tests to revision fb15e14b52049f952612623ee0d7fb7a620a57c9

This commit is contained in:
WPT Sync Bot 2018-11-01 21:34:37 -04:00
parent 200cc8aa6b
commit 4a942c982f
141 changed files with 2563 additions and 1589 deletions

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#containing-block-details">
<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#anonymous-block-level">
<p>There should be a green square below, and no red.</p>
<div style="position:relative; width:100px; height:100px; background:red;">
<span id="posMe">
<div id="removeMe"></div>
</span>
<span>
<div>
<div id="target" style="position:absolute; width:100%; height:100%; background:green;"></div>
</div>
</span>
</div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(()=> {
document.body.offsetTop;
removeMe.style.display = "none";
document.body.offsetTop;
posMe.style.position = "relative";
assert_equals(document.getElementById("target").offsetWidth, 100);
assert_equals(document.getElementById("target").offsetHeight, 100);
assert_equals(document.getElementById("target").offsetLeft, 0);
assert_equals(document.getElementById("target").offsetTop, 0);
}, "Make sure that we're sized by the right ancestor");
</script>

View file

@ -32,13 +32,7 @@
margin-top: 0em;
}
div#X
{
float: left;
margin-left: 50%;
}
div#after-X
div
{
background-color: aqua;
width: 25%;
@ -58,9 +52,7 @@
the others should all be<br />
<em>aligned on the left</em> of the window.</p>
<div id="X">X</div>
<div id="after-X"><br />The X on the previous line should be centered across the window.</div>
<div><span style="padding-left:50%">X The first X in this sentence should be indented to the center of this block.</span></div>
</body>
</html>

View file

@ -27,7 +27,7 @@
<em>aligned on the left</em> of the window.
</p>
<div>
X The X on the previous line should be centered across the window.
X The first X in this sentence should be indented to the center of this block.
</div>
</body>
</html>

View file

@ -2,7 +2,7 @@
<title>text-indent test</title>
<style type="text/css">
div { width: 500px; }
p { width: 300px; text-indent: 50px; }
p { width: 300px; text-indent: 30px; }
</style>
</head>
<body>
@ -11,4 +11,4 @@ p { width: 300px; text-indent: 50px; }
</div>
</body></html>
</body></html>