Update web-platform-tests to revision a3dd2ad02c65588ad280ceac378d82e9250d1045

This commit is contained in:
WPT Sync Bot 2019-10-23 10:27:05 +00:00
parent e26530341b
commit 15e68ad3d3
171 changed files with 2819 additions and 1841 deletions

View file

@ -0,0 +1,19 @@
<!doctype html>
<title>CSS Test: Invalidating style inside display:none with ::before should not crash.</title>
<link rel="help" href="https://crbug.com/1013570">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#outer { display: none }
#outer::before { content: " "; }
</style>
<div id="outer">
<div id="inner"></div>
</div>
<script>
test(() => {
assert_equals(getComputedStyle(inner).color, "rgb(0, 0, 0)");
inner.style.color = "green";
assert_equals(getComputedStyle(inner).color, "rgb(0, 128, 0)");
}, "Invalidating style inside display:none with ::before should not crash.");
</script>

View file

@ -1,25 +1,25 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Reference File</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<style>
div {
font-size: 50px;
position: absolute;
left: 30px;
top: 50px;
}
div span {
color: green;
background: green;
float: left;
}
</style>
<meta charset="utf-8">
<title>CSS Reference File</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<style>
div {
font-size: 50px;
position: absolute;
left: 30px;
top: 50px;
}
div span {
color: green;
background: green;
float: left;
}
</style>
</head>
<body>
<p>Test passes if there is a <strong>filled green rectangle</strong> and <strong>no red</strong>.</p>
<div><span>a</span></div>
<p>Test passes if there is a <strong>filled green rectangle</strong> and <strong>no red</strong>.</p>
<div><span>a</span></div>
</body>
</html>

View file

@ -1,33 +1,33 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: ::first-letter formatting</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="match" href="first-letter-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<meta name="flags" content="">
<meta name="assert" content="Test checks that a floated ::first-letter follows the usual formating rules for floats.">
<style>
div {
font-size: 50px;
position: absolute;
left: 30px;
top: 50px;
background: red;
}
span {
background : white;
}
div::first-letter {
color: green;
background: green;
float: left;
}
</style>
<meta charset="utf-8">
<title>CSS Test: ::first-letter formatting</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="match" href="first-letter-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<meta name="flags" content="">
<meta name="assert" content="Test checks that a floated ::first-letter follows the usual formating rules for floats.">
<style>
div {
font-size: 50px;
position: absolute;
left: 30px;
top: 50px;
background: red;
}
span {
background : white;
}
div::first-letter {
color: green;
background: green;
float: left;
}
</style>
</head>
<body>
<p>Test passes if there is a <strong>filled green rectangle</strong> and <strong>no red</strong>.</p>
<div>a<span>&nbsp;</span></div>
<p>Test passes if there is a <strong>filled green rectangle</strong> and <strong>no red</strong>.</p>
<div>a<span>&nbsp;</span></div>
</body>
</html>

View file

@ -1,35 +1,35 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: ::first-letter formatting</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="match" href="first-letter-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<meta name="flags" content="">
<meta name="assert" content="Test checks that a floated ::first-letter is formatted identically to a floated non-pseudo element with the same content.">
<style>
div {
font-size: 50px;
position: absolute;
left: 30px;
top: 50px;
}
#d1 span {
color: red;
background: red;
float: left;
}
#d2::first-letter {
color: green;
background: green;
float: left;
}
</style>
<meta charset="utf-8">
<title>CSS Test: ::first-letter formatting</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="match" href="first-letter-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<meta name="flags" content="">
<meta name="assert" content="Test checks that a floated ::first-letter is formatted identically to a floated non-pseudo element with the same content.">
<style>
div {
font-size: 50px;
position: absolute;
left: 30px;
top: 50px;
}
#d1 span {
color: red;
background: red;
float: left;
}
#d2::first-letter {
color: green;
background: green;
float: left;
}
</style>
</head>
<body>
<p>Test passes if there is a <strong>filled green rectangle</strong> and <strong>no red</strong>.</p>
<div id="d1"><span>a</span></div>
<div id="d2">a</div>
<p>Test passes if there is a <strong>filled green rectangle</strong> and <strong>no red</strong>.</p>
<div id="d1"><span>a</span></div>
<div id="d2">a</div>
</body>
</html>

View file

@ -1,35 +1,35 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: ::first-letter formatting</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="match" href="first-letter-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<meta name="flags" content="">
<meta name="assert" content="Test checks that a floated ::first-letter is formatted identically to a floated non-pseudo element with the same content.">
<style>
div {
font-size: 50px;
position: absolute;
left: 30px;
top: 50px;
}
#d1::first-letter {
color: red;
background: red;
float: left;
}
#d2 span {
color: green;
background: green;
float: left;
}
</style>
<meta charset="utf-8">
<title>CSS Test: ::first-letter formatting</title>
<link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
<link rel="match" href="first-letter-001-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<meta name="flags" content="">
<meta name="assert" content="Test checks that a floated ::first-letter is formatted identically to a floated non-pseudo element with the same content.">
<style>
div {
font-size: 50px;
position: absolute;
left: 30px;
top: 50px;
}
#d1::first-letter {
color: red;
background: red;
float: left;
}
#d2 span {
color: green;
background: green;
float: left;
}
</style>
</head>
<body>
<p>Test passes if there is a <strong>filled green rectangle</strong> and <strong>no red</strong>.</p>
<div id="d1">a</div>
<div id="d2"><span>a</span></div>
<p>Test passes if there is a <strong>filled green rectangle</strong> and <strong>no red</strong>.</p>
<div id="d1">a</div>
<div id="d2"><span>a</span></div>
</body>
</html>

View file

@ -2,19 +2,19 @@
<meta charset="utf-8">
<html lang="en">
<head>
<title>initial-letter width test</title>
<style>
span {
position: absolute;
color: transparent;
}
#control {
background-color: green;
}
</style>
<title>initial-letter width test</title>
<style>
span {
position: absolute;
color: transparent;
}
#control {
background-color: green;
}
</style>
</head>
<body>
<p>There should be no red</p>
<span id="control">Test.</span>
<p>There should be no red</p>
<span id="control">Test.</span>
</body>
</html>
</html>

View file

@ -2,37 +2,37 @@
<meta charset="utf-8">
<html lang="en">
<head>
<title>initial-letter width test</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=362880">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<link rel="match" href="first-letter-width-ref.html">
<meta name="assert" content="The width of an element with first-letter styling should render correctly.">
<style>
div {
position: relative;
}
span {
position: absolute;
color: transparent;
}
#control {
background-color: green;
}
#test {
background-color: red;
line-height: 1;
top: 1px;
}
#test::first-letter {
text-transform: uppercase;
}
</style>
<title>initial-letter width test</title>
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=362880">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
<link rel="match" href="first-letter-width-ref.html">
<meta name="assert" content="The width of an element with first-letter styling should render correctly.">
<style>
div {
position: relative;
}
span {
position: absolute;
color: transparent;
}
#control {
background-color: green;
}
#test {
background-color: red;
line-height: 1;
top: 1px;
}
#test::first-letter {
text-transform: uppercase;
}
</style>
</head>
<body>
<p>There should be no red</p>
<div>
<span id="test">Test</span>
<span id="control">Test.</span>
</div>
<p>There should be no red</p>
<div>
<span id="test">Test</span>
<span id="control">Test.</span>
</div>
</body>
</html>
</html>