aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-text
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-text')
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/META.yml1
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-007.html38
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/white-space/pre-wrap-008.html38
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-011.html5
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-012.html4
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-013.html4
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-015.html38
7 files changed, 121 insertions, 7 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-text/META.yml b/tests/wpt/web-platform-tests/css/css-text/META.yml
index 042b858557d..e7914c0fc7f 100644
--- a/tests/wpt/web-platform-tests/css/css-text/META.yml
+++ b/tests/wpt/web-platform-tests/css/css-text/META.yml
@@ -5,5 +5,4 @@ suggested_reviewers:
- frivoal
- r12a
- nox
- - hakatashi
- fantasai
diff --git a/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-007.html b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-007.html
new file mode 100644
index 00000000000..0491b921e1a
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-007.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Test: overflow-wrap: break-word</title>
+<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
+<meta name="flags" content="ahem">
+<link rel="match" href="reference/overflow-wrap-break-word-001-ref.html">
+<meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: break-spaces' property, that must prevent the word to be broken.">
+<style>
+div {
+ position: relative;
+ font-size: 20px;
+ font-family: Ahem;
+}
+.red {
+ position: absolute;
+ background: green;
+ color: red;
+ width: 100px;
+ height: 100px;
+ z-index: -1;
+ white-space: pre;
+}
+.test {
+ color: green;
+ line-height: 1em;
+ width: 5ch;
+
+ white-space: pre-wrap;
+ overflow-wrap: break-word;
+}
+</style>
+<body>
+ <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+ <div class="red"> XX <br>XXX</div>
+ <div class="test"> XX XXX </div>
+</body>
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/pre-wrap-008.html b/tests/wpt/web-platform-tests/css/css-text/white-space/pre-wrap-008.html
new file mode 100644
index 00000000000..1ddbb7fe356
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/pre-wrap-008.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Test: white-space: pre-wrap</title>
+<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-word">
+<meta name="flags" content="ahem">
+<link rel="match" href="reference/white-space-break-spaces-005-ref.html">
+<meta name="assert" content="The word is not broken despite the 'word-break: break-word' if there are previous breaking opportunities, honoring the white-space: pre-wrap value.">
+<style>
+div {
+ position: relative;
+ font-size: 20px;
+ font-family: Ahem;
+}
+.red {
+ position: absolute;
+ background: green;
+ color: red;
+ width: 100px;
+ height: 100px;
+ z-index: -1;
+ white-space: pre;
+}
+.test {
+ color: green;
+ line-height: 1em;
+ width: 5ch;
+
+ white-space: pre-wrap;
+ word-break: break-word;
+}
+</style>
+<body>
+ <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+ <div class="red"> XX <br>XXX</div>
+ <div class="test"> XX XXX </div>
+</body>
diff --git a/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-011.html b/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-011.html
index fade439dd9a..74ca60503f6 100644
--- a/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-011.html
+++ b/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-011.html
@@ -21,10 +21,11 @@ div {
width: 100px;
height: 100px;
z-index: -1;
+ white-space: pre;
}
+span { color: green; }
.test {
color: green;
- background: green;
width: 1ch;
white-space: pre-wrap;
word-break: break-all;
@@ -32,6 +33,6 @@ div {
</style>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
- <div class="red">X<br>X<br>X</div>
+ <div class="red"> <br>X<br>X</div>
<div class="test"> XX</div>
</body>
diff --git a/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-012.html b/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-012.html
index cd3d44056ec..6cbcbad92c4 100644
--- a/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-012.html
+++ b/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-012.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
-<title>CSS Text Test: overflow-wrap: break-word</title>
+<title>CSS Text Test: word-break: break-all</title>
<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
@@ -15,12 +15,12 @@ div {
}
.red {
position: absolute;
- white-space: pre;
background: green;
color: red;
width: 100px;
height: 100px;
z-index: -1;
+ white-space: pre;
}
.test {
color: green;
diff --git a/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-013.html b/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-013.html
index 85dce08b641..5029e4d891b 100644
--- a/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-013.html
+++ b/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-013.html
@@ -20,10 +20,10 @@ div {
width: 100px;
height: 100px;
z-index: -1;
+ white-space: pre;
}
.test {
color: green;
- background: green;
line-height: 1em;
width: 1ch;
white-space: break-spaces;
@@ -32,6 +32,6 @@ div {
</style>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
- <div class="red">X<br>X<br>X</div>
+ <div class="red"> <br>X<br>X</div>
<div class="test"> XX</div>
</body>
diff --git a/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-015.html b/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-015.html
new file mode 100644
index 00000000000..9602a1f2cf0
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/word-break/word-break-break-all-015.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Test: word-break: break-all</title>
+<link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
+<meta name="flags" content="ahem">
+<link rel="match" href="reference/word-break-break-all-010-ref.html">
+<meta name="assert" content="The word is broken even if white-space: pre-wrap provides a former breaking opportunity in leading white-space.">
+<style>
+div {
+ position: relative;
+ font-size: 20px;
+ font-family: Ahem;
+}
+.red {
+ position: absolute;
+ background: green;
+ color: red;
+ width: 100px;
+ height: 100px;
+ z-index: -1;
+ white-space: pre;
+}
+.test {
+ color: green;
+ line-height: 1em;
+ width: 5ch;
+
+ white-space: pre-wrap;
+ word-break: break-all;
+}
+</style>
+<body>
+ <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+ <div class="red"> XX X<br>XX</div>
+ <div class="test"> XX XXX </div>
+</body>