-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1626150 [wpt PR 22553] - Added 6 break-spaces and new line tests,…
… a=testonly Automatic update from web-platform-tests Added 6 break-spaces and new line tests (#22553) -- wpt-commits: 20a217cb8488e4339e0c9610aba99e2654b676c3 wpt-pr: 22553
- Loading branch information
1 parent
18b321f
commit ae937ff
Showing
6 changed files
with
315 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
testing/web-platform/tests/css/css-text/white-space/break-spaces-newline-011.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,53 @@ | ||
<!DOCTYPE html> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<title>CSS Text: 'white-space: break-spaces' with 4 white spaces and 4 line feeda</title> | ||
|
||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> | ||
|
||
<meta content="" name="flags"> | ||
<meta content="This test checks that when 'white-space' is set to 'break-spaces', then line feeds (&NewLine; in the code) are preserved, just like with 'white-space: pre' or with 'white-space: pre-wrap'."> | ||
|
||
<style> | ||
div | ||
{ | ||
font-family: Ahem; | ||
font-size: 25px; | ||
line-height: 1; | ||
width: 4em; | ||
} | ||
|
||
div#overlapped-red-reference | ||
{ | ||
background-color: red; | ||
height: 4em; | ||
} | ||
|
||
div#overlapping-green-test | ||
{ | ||
background-color: green; | ||
bottom: 4em; | ||
color: red; | ||
position: relative; | ||
white-space: break-spaces; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>. | ||
|
||
<div id="overlapped-red-reference"></div> | ||
|
||
<div id="overlapping-green-test">

 

</div> | ||
<!-- ^ ^ | ||
4 consecutive white spaces: 1234 | ||
--> | ||
|
||
<!-- | ||

 == Line feed == 
 == 
 | ||
--> |
53 changes: 53 additions & 0 deletions
53
testing/web-platform/tests/css/css-text/white-space/break-spaces-newline-012.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,53 @@ | ||
<!DOCTYPE html> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<title>CSS Text: 'white-space: break-spaces', 10 white spaces and 1 line feed</title> | ||
|
||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> | ||
|
||
<meta content="" name="flags"> | ||
<meta content="This test checks that when 'white-space' is set to 'break-spaces', then line feeds (&NewLine; in the code) are preserved, just like with 'white-space: pre' or with 'white-space: pre-wrap'."> | ||
|
||
<style> | ||
div | ||
{ | ||
font-family: Ahem; | ||
font-size: 25px; | ||
line-height: 1; | ||
width: 4em; | ||
} | ||
|
||
div#overlapped-red-reference | ||
{ | ||
background-color: red; | ||
height: 4em; | ||
} | ||
|
||
div#overlapping-green-test | ||
{ | ||
background-color: green; | ||
bottom: 4em; | ||
color: red; | ||
position: relative; | ||
white-space: break-spaces; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>. | ||
|
||
<div id="overlapped-red-reference"></div> | ||
|
||
<div id="overlapping-green-test"> 
 </div> | ||
<!-- ^ ^ ^ | ||
10 white spaces: 1 234567890 | ||
--> | ||
|
||
<!-- | ||

 == Line feed == 
 == 
 | ||
--> |
53 changes: 53 additions & 0 deletions
53
testing/web-platform/tests/css/css-text/white-space/break-spaces-newline-013.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,53 @@ | ||
<!DOCTYPE html> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<title>CSS Text: 'white-space: break-spaces', 7 white spaces and 2 line feeds</title> | ||
|
||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> | ||
|
||
<meta content="" name="flags"> | ||
<meta content="This test checks that when 'white-space' is set to 'break-spaces', then line feeds (&NewLine; in the code) are preserved, just like with 'white-space: pre' or with 'white-space: pre-wrap'."> | ||
|
||
<style> | ||
div | ||
{ | ||
font-family: Ahem; | ||
font-size: 25px; | ||
line-height: 1; | ||
width: 4em; | ||
} | ||
|
||
div#overlapped-red-reference | ||
{ | ||
background-color: red; | ||
height: 4em; | ||
} | ||
|
||
div#overlapping-green-test | ||
{ | ||
background-color: green; | ||
bottom: 4em; | ||
color: red; | ||
position: relative; | ||
white-space: break-spaces; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>. | ||
|
||
<div id="overlapped-red-reference"></div> | ||
|
||
<div id="overlapping-green-test"> 
 
 </div> | ||
<!-- ^ ^ ^ ^ | ||
7 white spaces: 1 2 34567 | ||
--> | ||
|
||
<!-- | ||

 == Line feed == 
 == 
 | ||
--> |
53 changes: 53 additions & 0 deletions
53
testing/web-platform/tests/css/css-text/white-space/break-spaces-newline-014.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,53 @@ | ||
<!DOCTYPE html> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<title>CSS Text: 'white-space: break-spaces', 4 white spaces and 3 line feeds</title> | ||
|
||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> | ||
|
||
<meta content="" name="flags"> | ||
<meta content="This test checks that when 'white-space' is set to 'break-spaces', then line feeds (&NewLine; in the code) are preserved, just like with 'white-space: pre' or with 'white-space: pre-wrap'."> | ||
|
||
<style> | ||
div | ||
{ | ||
font-family: Ahem; | ||
font-size: 25px; | ||
line-height: 1; | ||
width: 4em; | ||
} | ||
|
||
div#overlapped-red-reference | ||
{ | ||
background-color: red; | ||
height: 4em; | ||
} | ||
|
||
div#overlapping-green-test | ||
{ | ||
background-color: green; | ||
bottom: 4em; | ||
color: red; | ||
position: relative; | ||
white-space: break-spaces; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>. | ||
|
||
<div id="overlapped-red-reference"></div> | ||
|
||
<div id="overlapping-green-test"> 
 
 
 </div> | ||
<!-- ^ ^ ^ ^ | ||
4 white spaces: 1 2 3 4 | ||
--> | ||
|
||
<!-- | ||

 == Line feed == 
 == 
 | ||
--> |
53 changes: 53 additions & 0 deletions
53
testing/web-platform/tests/css/css-text/white-space/break-spaces-newline-015.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,53 @@ | ||
<!DOCTYPE html> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<title>CSS Text: 'white-space: break-spaces', 3 white spaces and 3 line feeds</title> | ||
|
||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> | ||
|
||
<meta content="" name="flags"> | ||
<meta content="This test checks that when 'white-space' is set to 'break-spaces', then line feeds (&NewLine; in the code) are preserved, just like with 'white-space: pre' or with 'white-space: pre-wrap'."> | ||
|
||
<style> | ||
div | ||
{ | ||
font-family: Ahem; | ||
font-size: 25px; | ||
line-height: 1; | ||
width: 4em; | ||
} | ||
|
||
div#overlapped-red-reference | ||
{ | ||
background-color: red; | ||
height: 4em; | ||
} | ||
|
||
div#overlapping-green-test | ||
{ | ||
background-color: green; | ||
bottom: 4em; | ||
color: red; | ||
position: relative; | ||
white-space: break-spaces; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>. | ||
|
||
<div id="overlapped-red-reference"></div> | ||
|
||
<div id="overlapping-green-test">
 
 
 </div> | ||
<!-- ^ ^ ^ | ||
3 white spaces: 1 2 3 | ||
--> | ||
|
||
<!-- | ||

 == Line feed == 
 == 
 | ||
--> |
50 changes: 50 additions & 0 deletions
50
testing/web-platform/tests/css/css-text/white-space/break-spaces-newline-016.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,50 @@ | ||
<!DOCTYPE html> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<title>CSS Text: 'white-space: break-spaces' and 4 consecutive line feeds</title> | ||
|
||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> | ||
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> | ||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> | ||
|
||
<meta content="" name="flags"> | ||
<meta content="This test checks that when 'white-space' is set to 'break-spaces', then line feeds (&NewLine; in the code) are preserved, just like with 'white-space: pre' or with 'white-space: pre-wrap'."> | ||
|
||
<style> | ||
div | ||
{ | ||
font-family: Ahem; | ||
font-size: 25px; | ||
line-height: 1; | ||
width: 4em; | ||
} | ||
|
||
div#overlapped-red-reference | ||
{ | ||
background-color: red; | ||
height: 4em; | ||
} | ||
|
||
div#overlapping-green-test | ||
{ | ||
background-color: green; | ||
bottom: 4em; | ||
color: red; | ||
position: relative; | ||
white-space: break-spaces; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>. | ||
|
||
<div id="overlapped-red-reference"></div> | ||
|
||
<div id="overlapping-green-test">



</div> | ||
|
||
<!-- | ||

 == Line feed == 
 == 
 | ||
--> |