aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-text/overflow-wrap
diff options
context:
space:
mode:
authorWPT Sync Bot <josh+wptsync@joshmatthews.net>2018-10-03 21:30:54 -0400
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2018-10-03 23:02:48 -0400
commit5e2118728a5ef4e6b99a7d1ee9fca1d44bb8bdaf (patch)
tree4a055f9cdfe2604602cc5e1676886f19a96bb171 /tests/wpt/web-platform-tests/css/css-text/overflow-wrap
parente56db1f322b504d9661a60127b74fb8e0bfc9669 (diff)
downloadservo-5e2118728a5ef4e6b99a7d1ee9fca1d44bb8bdaf.tar.gz
servo-5e2118728a5ef4e6b99a7d1ee9fca1d44bb8bdaf.zip
Update web-platform-tests to revision e29e596073468910d8655a8ec23262f17543e147
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-text/overflow-wrap')
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-004.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-004.html b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-004.html
new file mode 100644
index 00000000000..560ef63b2f9
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-004.html
@@ -0,0 +1,36 @@
+<!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">
+<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: pre-wrap' 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;
+}
+.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"><br>XXXXX</div>
+ <div class="test"> XXXXX </div>
+</body>