Skip to content

Commit

Permalink
Added 6 break-spaces and new line tests (#22553)
Browse files Browse the repository at this point in the history
  • Loading branch information
TalbotG authored Apr 17, 2020
1 parent 94a57a7 commit 20a217c
Show file tree
Hide file tree
Showing 6 changed files with 315 additions and 0 deletions.
53 changes: 53 additions & 0 deletions css/css-text/white-space/break-spaces-newline-011.html
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 (&amp;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">&NewLine;&NewLine; &NewLine;&NewLine;</div>
<!-- ^ ^
4 consecutive white spaces: 1234
-->

<!--
&NewLine; == Line feed == &#x000A; == &#0010;
-->
53 changes: 53 additions & 0 deletions css/css-text/white-space/break-spaces-newline-012.html
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 (&amp;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"> &NewLine; </div>
<!-- ^ ^ ^
10 white spaces: 1 234567890
-->

<!--
&NewLine; == Line feed == &#x000A; == &#0010;
-->
53 changes: 53 additions & 0 deletions css/css-text/white-space/break-spaces-newline-013.html
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 (&amp;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"> &NewLine; &NewLine; </div>
<!-- ^ ^ ^ ^
7 white spaces: 1 2 34567
-->

<!--
&NewLine; == Line feed == &#x000A; == &#0010;
-->
53 changes: 53 additions & 0 deletions css/css-text/white-space/break-spaces-newline-014.html
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 (&amp;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"> &NewLine; &NewLine; &NewLine; </div>
<!-- ^ ^ ^ ^
4 white spaces: 1 2 3 4
-->

<!--
&NewLine; == Line feed == &#x000A; == &#0010;
-->
53 changes: 53 additions & 0 deletions css/css-text/white-space/break-spaces-newline-015.html
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 (&amp;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">&NewLine; &NewLine; &NewLine; </div>
<!-- ^ ^ ^
3 white spaces: 1 2 3
-->

<!--
&NewLine; == Line feed == &#x000A; == &#0010;
-->
50 changes: 50 additions & 0 deletions css/css-text/white-space/break-spaces-newline-016.html
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 (&amp;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">&NewLine;&NewLine;&NewLine;&NewLine;</div>

<!--
&NewLine; == Line feed == &#x000A; == &#0010;
-->

0 comments on commit 20a217c

Please sign in to comment.