Skip to content

Commit 1aa572e

Browse files
committed
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 UltraBlame original commit: 1c2d6c952e7becd89617f33df3bb9a4c36b81c0f
1 parent e2042e3 commit 1aa572e

6 files changed

+315
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
3+
<meta charset="UTF-8">
4+
5+
<title>CSS Text: 'white-space: break-spaces' with 4 white spaces and 4 line feeda</title>
6+
7+
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
8+
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property">
9+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
10+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
11+
12+
<meta content="" name="flags">
13+
<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'.">
14+
15+
<style>
16+
div
17+
{
18+
font-family: Ahem;
19+
font-size: 25px;
20+
line-height: 1;
21+
width: 4em;
22+
}
23+
24+
div#overlapped-red-reference
25+
{
26+
background-color: red;
27+
height: 4em;
28+
}
29+
30+
div#overlapping-green-test
31+
{
32+
background-color: green;
33+
bottom: 4em;
34+
color: red;
35+
position: relative;
36+
white-space: break-spaces;
37+
}
38+
</style>
39+
40+
<p>Test passes if there is a filled green square and <strong>no red</strong>.
41+
42+
<div id="overlapped-red-reference"></div>
43+
44+
<div id="overlapping-green-test">&NewLine;&NewLine; &NewLine;&NewLine;</div>
45+
46+
47+
48+
49+
50+
51+
52+
53+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
3+
<meta charset="UTF-8">
4+
5+
<title>CSS Text: 'white-space: break-spaces', 10 white spaces and 1 line feed</title>
6+
7+
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
8+
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property">
9+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
10+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
11+
12+
<meta content="" name="flags">
13+
<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'.">
14+
15+
<style>
16+
div
17+
{
18+
font-family: Ahem;
19+
font-size: 25px;
20+
line-height: 1;
21+
width: 4em;
22+
}
23+
24+
div#overlapped-red-reference
25+
{
26+
background-color: red;
27+
height: 4em;
28+
}
29+
30+
div#overlapping-green-test
31+
{
32+
background-color: green;
33+
bottom: 4em;
34+
color: red;
35+
position: relative;
36+
white-space: break-spaces;
37+
}
38+
</style>
39+
40+
<p>Test passes if there is a filled green square and <strong>no red</strong>.
41+
42+
<div id="overlapped-red-reference"></div>
43+
44+
<div id="overlapping-green-test"> &NewLine; </div>
45+
46+
47+
48+
49+
50+
51+
52+
53+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
3+
<meta charset="UTF-8">
4+
5+
<title>CSS Text: 'white-space: break-spaces', 7 white spaces and 2 line feeds</title>
6+
7+
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
8+
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property">
9+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
10+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
11+
12+
<meta content="" name="flags">
13+
<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'.">
14+
15+
<style>
16+
div
17+
{
18+
font-family: Ahem;
19+
font-size: 25px;
20+
line-height: 1;
21+
width: 4em;
22+
}
23+
24+
div#overlapped-red-reference
25+
{
26+
background-color: red;
27+
height: 4em;
28+
}
29+
30+
div#overlapping-green-test
31+
{
32+
background-color: green;
33+
bottom: 4em;
34+
color: red;
35+
position: relative;
36+
white-space: break-spaces;
37+
}
38+
</style>
39+
40+
<p>Test passes if there is a filled green square and <strong>no red</strong>.
41+
42+
<div id="overlapped-red-reference"></div>
43+
44+
<div id="overlapping-green-test"> &NewLine; &NewLine; </div>
45+
46+
47+
48+
49+
50+
51+
52+
53+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
3+
<meta charset="UTF-8">
4+
5+
<title>CSS Text: 'white-space: break-spaces', 4 white spaces and 3 line feeds</title>
6+
7+
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
8+
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property">
9+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
10+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
11+
12+
<meta content="" name="flags">
13+
<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'.">
14+
15+
<style>
16+
div
17+
{
18+
font-family: Ahem;
19+
font-size: 25px;
20+
line-height: 1;
21+
width: 4em;
22+
}
23+
24+
div#overlapped-red-reference
25+
{
26+
background-color: red;
27+
height: 4em;
28+
}
29+
30+
div#overlapping-green-test
31+
{
32+
background-color: green;
33+
bottom: 4em;
34+
color: red;
35+
position: relative;
36+
white-space: break-spaces;
37+
}
38+
</style>
39+
40+
<p>Test passes if there is a filled green square and <strong>no red</strong>.
41+
42+
<div id="overlapped-red-reference"></div>
43+
44+
<div id="overlapping-green-test"> &NewLine; &NewLine; &NewLine; </div>
45+
46+
47+
48+
49+
50+
51+
52+
53+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
3+
<meta charset="UTF-8">
4+
5+
<title>CSS Text: 'white-space: break-spaces', 3 white spaces and 3 line feeds</title>
6+
7+
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
8+
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property">
9+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
10+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
11+
12+
<meta content="" name="flags">
13+
<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'.">
14+
15+
<style>
16+
div
17+
{
18+
font-family: Ahem;
19+
font-size: 25px;
20+
line-height: 1;
21+
width: 4em;
22+
}
23+
24+
div#overlapped-red-reference
25+
{
26+
background-color: red;
27+
height: 4em;
28+
}
29+
30+
div#overlapping-green-test
31+
{
32+
background-color: green;
33+
bottom: 4em;
34+
color: red;
35+
position: relative;
36+
white-space: break-spaces;
37+
}
38+
</style>
39+
40+
<p>Test passes if there is a filled green square and <strong>no red</strong>.
41+
42+
<div id="overlapped-red-reference"></div>
43+
44+
<div id="overlapping-green-test">&NewLine; &NewLine; &NewLine; </div>
45+
46+
47+
48+
49+
50+
51+
52+
53+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!DOCTYPE html>
2+
3+
<meta charset="UTF-8">
4+
5+
<title>CSS Text: 'white-space: break-spaces' and 4 consecutive line feeds</title>
6+
7+
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
8+
<link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property">
9+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
10+
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
11+
12+
<meta content="" name="flags">
13+
<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'.">
14+
15+
<style>
16+
div
17+
{
18+
font-family: Ahem;
19+
font-size: 25px;
20+
line-height: 1;
21+
width: 4em;
22+
}
23+
24+
div#overlapped-red-reference
25+
{
26+
background-color: red;
27+
height: 4em;
28+
}
29+
30+
div#overlapping-green-test
31+
{
32+
background-color: green;
33+
bottom: 4em;
34+
color: red;
35+
position: relative;
36+
white-space: break-spaces;
37+
}
38+
</style>
39+
40+
<p>Test passes if there is a filled green square and <strong>no red</strong>.
41+
42+
<div id="overlapped-red-reference"></div>
43+
44+
<div id="overlapping-green-test">&NewLine;&NewLine;&NewLine;&NewLine;</div>
45+
46+
47+
48+
49+
50+

0 commit comments

Comments
 (0)