-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 6 break-spaces and new line tests (#22553)
- Loading branch information
Showing
6 changed files
with
315 additions
and
0 deletions.
There are no files selected for viewing
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 == 
 == 
 | ||
--> |
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 == 
 == 
 | ||
--> |
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 == 
 == 
 | ||
--> |
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 == 
 == 
 | ||
--> |
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 == 
 == 
 | ||
--> |
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 == 
 == 
 | ||
--> |