-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1571209 [wpt PR 18273] - [css-text] tests for css issue 3879, a=t…
…estonly Automatic update from web-platform-tests [css-text] tests for css issue 3879 (#18273) See w3c/csswg-drafts#3879 -- wpt-commits: 4c93404d56218bb88f32b578ece7d47712952530 wpt-pr: 18273 UltraBlame original commit: ff2a357f450ebeccd8b745ea72476452743962cf
- Loading branch information
Showing
4 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...orm/tests/css/css-text/white-space/reference/trailing-other-space-separators-001-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Test reference</title> | ||
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> | ||
<style> | ||
div { font-family: monospace; } | ||
</style> | ||
|
||
<p>Test passes if there are two columns of "x" characters below and no red. | ||
|
||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> | ||
<div>xx<br>xx</div> |
33 changes: 33 additions & 0 deletions
33
...orm/tests/css/css-text/white-space/reference/trailing-other-space-separators-002-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Test reference</title> | ||
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> | ||
<style> | ||
div { | ||
white-space: pre-wrap; | ||
font-family: Ahem; | ||
font-size: 10px; | ||
line-height: 1; | ||
color: green; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there are two green tall boxes below and no red. | ||
|
||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> |
30 changes: 30 additions & 0 deletions
30
testing/web-platform/tests/css/css-text/white-space/trailing-other-space-separators-001.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text level 3 Test: sequence of spaces and other space separators at the end of line must be removed</title> | ||
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> | ||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> | ||
<link rel="match" href="reference/trailing-other-space-separators-001-ref.html"> | ||
<meta name="assert" content="An sequence of regular spaces and other space separators at the end of the line must be removed."> | ||
<style> | ||
div { font-family: monospace; width: 2ch; } | ||
span { background: red; } /* If the space hangs instead of being removed, there will be red */ | ||
</style> | ||
|
||
<p>Test passes if there are two columns of "x" characters below and no red. | ||
|
||
<div>xx<span>                    </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span><wbr>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span><wbr>xx</div> | ||
<div>xx<span> </span>xx</div> | ||
<div>xx<span> </span>xx</div> |
65 changes: 65 additions & 0 deletions
65
testing/web-platform/tests/css/css-text/white-space/trailing-other-space-separators-002.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Text level 3 Test: sequence of spaces and other space separators at the end of line with white-space:pre-wrap</title> | ||
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> | ||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> | ||
<link rel="match" href="reference/trailing-other-space-separators-002-ref.html"> | ||
<meta name="assert" content="An sequence of regular spaces and other space separators at the end of the line must hang if white-space is pre-wrap."> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> | ||
<style> | ||
div { | ||
white-space: pre-wrap; | ||
font-family: Ahem; | ||
font-size: 10px; | ||
line-height: 1; | ||
width: 3ch; | ||
color: green; | ||
} | ||
.red { | ||
position: absolute; | ||
z-index: -1; | ||
} | ||
.red div { | ||
color: red; | ||
} | ||
span { color: transparent; } /* because ogham space is otherwise visible*/ | ||
</style> | ||
|
||
<p>Test passes if there are two green tall boxes below and no red. | ||
|
||
<section class=red> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
<div>x x<br>x x</div> | ||
</section> | ||
<section> | ||
<div>x x<span> </span>                   x x</div> | ||
<div>x x<span> </span>x x</div> | ||
<div>x x x x</div> | ||
<div>x x x x</div> | ||
<div>x x x x</div> | ||
<div>x x x x</div> | ||
<div>x x x x</div> | ||
<div>x x x x</div> | ||
<div>x x x x</div> | ||
<div>x x <wbr>x x</div> | ||
<div>x x x x</div> | ||
<div>x x x x</div> | ||
<div>x x x x</div> | ||
<div>x x <wbr>x x</div> | ||
<div>x x x x</div> | ||
<div>x x x x</div> | ||
</section> |