Update web-platform-tests to revision 4dbc8a0d7b1b1c032aaddc2579ec7239ad565127

This commit is contained in:
WPT Sync Bot 2018-12-30 20:35:43 -05:00 committed by Josh Matthews
parent 40f1e188d0
commit d1e28c482e
329 changed files with 5366 additions and 1699 deletions

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap: anywhere</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
<meta name="flags" content="ahem">
<link rel="match" href="reference/overflow-wrap-break-word-001-ref.html">
<meta name="assert" content="sequences of nbsp characters that would cause overflow are expected to be broken when overflow-wrap is anywhere">
<style>
div {
position: relative;
width: 100px;
height: 100px;
font-family: Ahem;
color: red;
overflow-wrap: anywhere;
font-size: 25px;
line-height: 27px;
}
div::after{
content: "";
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
background: green;
}
</style>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;X</div>
</body>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap: anywhere + white-space:break-spaces</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
<meta name="flags" content="ahem">
<link rel="match" href="reference/overflow-wrap-break-word-002-ref.html">
<meta name="assert" content="anywhere + break-spaces do not allow a break
between the last character of a word and the first space of a sequence of preserved spaces
if there are other wrapping opportunities earlier in the line">
<style>
div {
white-space: break-spaces;
overflow-wrap: anywhere;
font-family: monospace;
width: 5ch;
line-height: 1;
overflow: hidden;
height: 1em;
}
</style>
<p>This test passes if there is nothing below this sentence.
<div> FAIL <div>
<!--
white-space:break-spaces should cause the spaces at the end of the line to be preserved.
Since there is an allowed break point between the first space and the F,
that's where the line should wrap,
not between the L and the subsequent space.
-->

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap:anywhere + white-space:break-spaces</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
<meta name="flags" content="ahem">
<link rel="match" href="reference/overflow-wrap-break-word-003-ref.html">
<meta name="assert" content="anywhere + break-spaces do allow a break
between the last character of a word and the first space of a sequence of preserved spaces
if there are no other wrapping opportunities earlier in the line">
<style>
div {
white-space: break-spaces;
overflow-wrap: anywhere;
font-family: monospace;
width: 4ch;
line-height: 1;
overflow: hidden;
height: 2em;
}
</style>
<p>This test passes if the word FAIL does not appear below.
<div>PASS FAIL<div>

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap: anywhere</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
<meta name="flags" content="ahem">
<link rel="match" href="reference/overflow-wrap-break-word-001-ref.html">
<meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: pre-wrap' property, that must prevent the word to be broken.">
<style>
div {
position: relative;
font-size: 20px;
font-family: Ahem;
line-height: 1em;
}
.red {
position: absolute;
background: green;
color: red;
width: 100px;
height: 100px;
z-index: -1;
}
.test {
color: green;
width: 5ch;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
</style>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<div class="red"><br>XXXXX</div>
<div class="test"> XXXXX </div>
</body>

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap: anywhere</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
<meta name="flags" content="ahem">
<link rel="match" href="reference/overflow-wrap-break-word-001-ref.html">
<meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: pre-wrap' property, that must prevent the word to be broken.">
<style>
div {
position: relative;
font-size: 20px;
font-family: Ahem;
line-height: 1em;
}
.fail {
position: absolute;
color: red;
z-index: -1;
}
span { color: green; }
.test {
color: green;
width: 5ch;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
</style>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<div class="fail">XXX<span>XX<br></span><span>XXXXX<br></span>XXXXX<br>XXXX<span>X<br></span><span>XXXXX</span></div>
<div class="test">XXX
XXXXXXXXX</div>
</body>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap: anywhere with fit-content</title>
<link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com">
<link rel="help" href="http://www.w3.org/TR/css-text-3/#overflow-wrap-property">
<meta name="flags" content="">
<link rel="match" href="reference/overflow-wrap-break-word-fit-content-001.html">
<meta name="assert" content="The 'overflow-wrap: anywhere' must not break non-BMP characters (which might be represented as surrogate pairs internally)">
<style>
.test {
display: inline-block;
overflow-wrap: anywhere;
font-size: 20px;
line-height: 1;
margin-bottom: .2em;
}
</style>
<body>
<div id="log"></div>
<p class="instructions">Tests pass if all lines do not wrap.
<div><div class="test">&#x1D70B;</div></div>
<div><div class="test">𝜋</div></div>
</body>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<title>CSS Text Test: overflow-wrap: anywhere</title>
<link rel="author" title="Koji Ishii" href="kojii@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
<link rel="match" href="reference/overflow-wrap-break-word-span-001-ref.html">
<meta name="assert" content="Test when the `anywhere` value is applied to an inline element.">
<style>
div {
font-size: 10px;
line-height: 1;
width: 8ch;
}
span {
word-wrap: anywhere;
}
</style>
<div>12345<span>67890</span></div>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<title>CSS Text Test: overflow-wrap: anywhere</title>
<link rel="author" title="Koji Ishii" href="kojii@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
<meta name="assert" content="Test when the `anywhere` value is applied to an inline element.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script><style>
div {
font-size: 10px;
line-height: 1;
width: 5ch;
}
span {
word-wrap: anywhere;
}
</style>
<div id=container data-expected-height=20>12345678<span>90</span></div>
<script>
checkLayout('#container')
</script>

View file

@ -0,0 +1,41 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: overflow-wrap: anywhere and intrinsic sizing</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#overflow-wrap-property">
<meta name="flags" content="">
<link rel="match" href="reference/overflow-wrap-min-content-size-004-ref.html">
<meta name="assert" content="Soft wrap opportunities introduced by overflow-wrap:break-word **are not** considered when calculating min-content intrinsic sizes.">
<style>
table {
overflow-wrap: break-word;
max-width: 0;
border: 0;
border-collapse: collapse;
}
td {
padding: 0;
background: green;
color: transparent;
}
#red {
position: absolute;
z-index: -1;
background: red;
color: transparent;
}
</style>
<p>Test passes if there is a green box below and no red.
<div id=red>XXXX</div>
<table><tr><td>XXXX</table>
<!--
width:min-content on the div directly without using a table
would achieve the goal of this test, and be a lot simpler.
However, width:min-content is not yet widely supported.
Using a table, and forcing it to be as small as possible
will achieve min-content sizing of the div in all browsers.
-->

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test reference</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<style>
div {
position: absolute;
background: green;
color: transparent;
}
</style>
<p>Test passes if there is a green box below and no red.
<div>XXXX</div>