Update web-platform-tests to revision ac16628eb7eb601957382053011363d2bcf8ce44

This commit is contained in:
WPT Sync Bot 2020-02-17 08:20:12 +00:00
parent ea7e753cea
commit 7e7c8873e4
4408 changed files with 664787 additions and 857286 deletions

View file

@ -19,7 +19,7 @@
<body>
<div>This should have a green border, because the computed value of 'border-color' set to its initial value is the computed value of 'color', which is then inherited as a color.</div>
<div>This should have a green border, because the computed value of 'border-color' set to its initial value is 'currentColor', which refers to the color on the current element.</div>
</body>
</html>

View file

@ -6,12 +6,12 @@
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/inheritance/border-color/001.html" type="text/html"/>
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/inheritance/border-color/001.xml" type="application/xhtml+xml"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-color-properties" />
<link rel="help" href="https://drafts.csswg.org/css-color/#resolving-color-values" />
<link rel="match" href="border-color-011-ref.xht" />
<meta name="assert" content="The initial value of border-color is 'currentColor', which (as of css-color-3) is inherited as a keyword." />
<style type="text/css">
.test { display: block; color: green; border: none; }
.test .inner { border-color: inherit; border-style: solid; color: red; }
.test .inner .text { color: green; }
.test { display: block; color: red; border: none; }
.test .inner { border-color: inherit; border-style: solid; color: green; }
</style>
</head>
<body>
@ -19,8 +19,8 @@
<div class="inner">
<div class="text">
This should have a green border, because the computed value of
'border-color' set to its initial value is the computed value
of 'color', which is then inherited as a color.
'border-color' set to its initial value is 'currentColor', which
refers to the color on the current element.
</div>
</div>
</div>

View file

@ -17,7 +17,7 @@
<body>
<div><span>This should have a green border, because the computed value of 'border-color' set to its initial value is the computed value of 'color', which is then inherited as a color.</span></div>
<div><span>This should have a green border, because the computed value of 'border-color' set to its initial value is 'currentColor'.</span></div>
</body>
</html>

View file

@ -6,11 +6,10 @@
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/inheritance/border/color/001.xml" type="application/xhtml+xml"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-color-properties" />
<link rel="match" href="border-color-012-ref.xht" />
<meta name="assert" content="The initial value of border-color is 'currentColor', which (as of css-color-3) is inherited as a keyword." />
<style type="text/css">
.test { display: block; color: green; border: none; }
.test > .inner { border-color: inherit; border-style: solid; color: red; }
.test > .inner > .text { color: green; }
.test { display: block; color: red; border: none; }
.test > .inner { border-color: inherit; border-style: solid; color: green; }
</style>
</head>
<body>
@ -18,8 +17,7 @@
<span class="inner">
<span class="text">
This should have a green border, because the computed value of
'border-color' set to its initial value is the computed value
of 'color', which is then inherited as a color.
'border-color' set to its initial value is 'currentColor'.
</span>
</span>
</div>

View file

@ -14,7 +14,7 @@
<link rel="stylesheet"
href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&amp;mime=text%2Fcss&amp;text=.a+%7B+color%3A+blue%3B+%7D"/>
<link rel="alternate stylesheet" title="Test"
href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&amp;mime=text%2Fcss&amp;text=.b+%7B+color%3A+green%3B+%7D>"/>
href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=8&amp;mime=text%2Fcss&amp;text=.b+%7B+color%3A+green%3B+%7D"/>
</head>
<body>
<p class="a">Select the alternate stylesheet to run this test.</p>

View file

@ -14,7 +14,7 @@
<link rel="stylesheet"
href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=5&amp;mime=text%2Fcss&amp;text=.a+%7B+color%3A+blue%3B+%7D"/>
<link rel="alternate stylesheet" title="Test"
href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&amp;mime=text%2Fcss&amp;text=.b+%7B+color%3A+green%3B+%7D>"/>
href="http://software.hixie.ch/utilities/cgi/test-tools/delayed-file?pause=2&amp;mime=text%2Fcss&amp;text=.b+%7B+color%3A+green%3B+%7D"/>
</head>
<body>
<p class="a">Select the alternate stylesheet to run this test.</p>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#floats">
<link rel="help" href="https://www.w3.org/TR/CSS22/zindex.html">
<div id="f1" style="float:left; width:100px; height:100px;"></div>
<div id="f2" style="float:left; width:100px; height:100px; margin-top:50px; margin-left:-50px;"></div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(()=> {
var elm = document.elementFromPoint(70, 70);
assert_equals(elm.id, "f2");
}, "Hit test float");
</script>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#floats">
<link rel="help" href="https://www.w3.org/TR/CSS22/zindex.html">
<div id="target" style="width:100px; height:100px;">
<div id="error" style="float:left; position:relative; z-index:-1; width:100px; height:100px;"></div>
</div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(()=> {
var elm = document.elementFromPoint(50, 50);
assert_equals(elm.id, "target");
}, "Miss float below something else");
</script>

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#floats">
<link rel="help" href="https://www.w3.org/TR/CSS22/zindex.html">
<div id="error" style="overflow:hidden; width:100px; height:100px;"></div>
<div style="margin-top:-100px; overflow:hidden; width:100px; height:100px;">
<div id="target" style="float:left; width:100px; height:100px;"></div>
</div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(()=> {
var elm = document.elementFromPoint(50, 50);
assert_equals(elm.id, "target");
}, "Miss float below something else");
</script>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#floats">
<link rel="help" href="https://www.w3.org/TR/CSS22/visufx.html#propdef-overflow">
<div id="target" style="height:200px;">
<div style="overflow:hidden; width:100px; height:100px;">
<div id="error" style="float:left; width:100px; height:200px;"></div>
</div>
</div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(()=> {
var elm = document.elementFromPoint(50, 150);
assert_equals(elm.id, "target");
}, "Miss clipped float");
</script>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#anonymous-block-level">
<div id="target" style="width:300px; height:300px; line-height:100px;">
&nbsp;
<div></div>
</div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(()=> {
var elm = document.elementFromPoint(200, 70);
assert_equals(elm.id, "target");
}, "Hit test beside line of text inside anonymous block");
</script>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<title>CSS Test: Line wrapping after leading floating objects</title>
<link rel="help" href="https://crbug.com/1014247">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<div id="parent" style="width: 100px; text-indent: 40px;">
<div style="float: left; width: 60px; height: 10px; background: hotpink;"></div>
<div id="lime" style="display: inline-block; width: 60px; height: 20px; background: lime;"></div>
</div>
</body>
<script>
test(function(){
parent_rect = document.getElementById("parent").getBoundingClientRect();
rect = document.getElementById("lime").getBoundingClientRect();
assert_equals(rect.left - parent_rect.left, 40);
}, "Checks line wrapping after leading floating objects.");
</script>