Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440'

This commit is contained in:
WPT Sync Bot 2021-09-07 11:16:33 +00:00 committed by cybai
parent 35e95f55a1
commit 58e8ee674b
9438 changed files with 266112 additions and 106976 deletions

View file

@ -3,7 +3,10 @@
<title>CSS test reference</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com"/>
<style>
div { white-space: pre; }
div {
white-space: pre;
line-height: 1;
}
</style>
<p>Test passes if the characters below are arranged in pairs with a empty line in between.</p>

View file

@ -14,4 +14,4 @@ span { color: blue; }
<p>This test passes if there is a green square and no red.
<div>XX<br>XX</div>
<div>XX<span>X</span><br>XX</div>

View file

@ -9,9 +9,8 @@ div {
font: 25px/1 Ahem;
color: green;
}
span { color: blue; }
</style>
<p>This test passes if there is a green square and no red.
<div>XX<span>X</span><br>XX</div>
<div>XX<br>XX</div>

View file

@ -10,6 +10,7 @@
div {
width: 3em;
white-space: break-spaces;
line-height: 1;
}
</style>

View file

@ -10,6 +10,7 @@
div {
width: 3em;
white-space: break-spaces;
line-height: 1;
}
</style>

View file

@ -10,6 +10,7 @@
div {
width: 3em;
white-space: break-spaces;
line-height: 1;
}
</style>

View file

@ -10,6 +10,7 @@
div {
width: 3em;
white-space: break-spaces;
line-height: 1;
}
</style>

View file

@ -10,6 +10,7 @@
div {
width: 3em;
white-space: break-spaces;
line-height: 1;
}
</style>

View file

@ -10,6 +10,7 @@
div {
width: 3em;
white-space: break-spaces;
line-height: 1;
}
</style>

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: min-content sizing and white-space: pre-wrap</title>
<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#propdef-white-space">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-004-ref.html">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-alt-004-ref.html">
<meta name="assert" content="Preserved spaces at the end of the line unconditioanlly hang, hence they do not affect the intrinsic min-content size.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
div {
font: 25px/1 Ahem;
color: green;
background: red;
width: min-content;
white-space: pre-wrap;
}
span { background: blue; } /* If the space is removed instead of hanging, there will be no blue box*/
</style>
<p>This test passes if there is a green square and no red.
<div>XX<span>&#x0020;</span>XX</div>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: min-content sizing and white-space: pre-wrap</title>
<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#propdef-white-space">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-alt-004-ref.html">
<meta name="assert" content="Preserved spaces unconditionally hang if they might overflow otherwise, hence they do not affect the intrinsic min-content size.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
div {
font: 25px/1 Ahem;
color: green;
background: red;
width: min-content;
white-space: pre-wrap;
}
</style>
<p>This test passes if there is a green square and no red.
<div>XX&#x0020;XX</div>

View file

@ -5,7 +5,7 @@
<link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://drafts.csswg.org/css-text-3/#white-space-property">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
<link rel="help" title="4.1.3. Phase II: Trimming and Positioning" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-004-ref.html">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-alt-004-ref.html">
<meta name="assert" content="Preserved white space at the end of a soft-wrapped line is hanged when white-space is pre-wrap.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>

View file

@ -8,6 +8,7 @@
<link rel="help" title="5.5. Overflow Wrapping: the overflow-wrap/word-wrap property" href="https://drafts.csswg.org/css-text-3/#overflow-wrap-property">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-004-ref.html">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-alt-004-ref.html">
<meta name="assert" content="Preserved white space at the end of a soft-wrapped line is hanged when white-space is pre-wrap.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
@ -20,6 +21,9 @@ div {
white-space: pre-wrap;
overflow-wrap: break-word;
}
span {
background: blue;
}
</style>
<p>This test passes if there is a green square and no red.

View file

@ -7,7 +7,7 @@
<link rel="help" title="4.1.3. Phase II: Trimming and Positioning" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
<link rel="help" title="5.5. Overflow Wrapping: the overflow-wrap/word-wrap property" href="https://drafts.csswg.org/css-text-3/#overflow-wrap-property">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-004-ref.html">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-alt-004-ref.html">
<meta name="assert" content="Preserved white space at the end of a soft-wrapped line is hanged when white-space is pre-wrap.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>

View file

@ -7,7 +7,7 @@
<link rel="help" title="4.1.3. Phase II: Trimming and Positioning" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
<link rel="help" title="5.5. Overflow Wrapping: the overflow-wrap/word-wrap property" href="https://drafts.csswg.org/css-text-3/#overflow-wrap-property">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-004-ref.html">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-alt-004-ref.html">
<meta name="assert" content="Preserved white space at the end of a soft-wrapped line is hanged when white-space is pre-wrap.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>

View file

@ -8,6 +8,7 @@
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-004-ref.html">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-alt-004-ref.html">
<meta name="assert" content="Preserved white space at the end of a soft-wrapped line is hanged when white-space is pre-wrap.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
@ -20,6 +21,7 @@ div {
white-space: pre-wrap;
word-break: break-all;
}
span { background: blue; } /* If the space is removed instead of hanging, there will be no blue box*/
</style>
<p>This test passes if there is a green square and no red.

View file

@ -7,7 +7,7 @@
<link rel="help" title="4.1.3. Phase II: Trimming and Positioning" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
<link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-004-ref.html">
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-alt-004-ref.html">
<meta name="assert" content="Preserved white space at the end of a soft-wrapped line is hanged when white-space is pre-wrap.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>