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>2019-09-16 10:23:28 +0000
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2019-09-16 13:25:06 +0000
commit6a79d6ee643f70c20a68fc7221ef9e4f81956516 (patch)
tree13f0ea5330b2657bbfb54de138ac55f69a4c3994 /tests/wpt/web-platform-tests/css/css-text/overflow-wrap
parent5d4dac8cf2257ad9d5ac6509a1ac484d647695f0 (diff)
downloadservo-6a79d6ee643f70c20a68fc7221ef9e4f81956516.tar.gz
servo-6a79d6ee643f70c20a68fc7221ef9e4f81956516.zip
Update web-platform-tests to revision 0bfde9f6a8bfde0fde4dba73d7172a8eed6e946e
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-keep-all-001.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-keep-all-001.html b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-keep-all-001.html
new file mode 100644
index 00000000000..ec27b82b6bf
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-keep-all-001.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<title>CSS Test: `break-word` should work with `word-break: keep-all`</title>
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word">
+<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
+<meta charset="utf-8">
+<style>
+div {
+ overflow-wrap: break-word;
+ word-break: keep-all;
+ font-size: 10px;
+ width: 7ch;
+ line-height: 20px;
+ background: lightgray;
+ margin-bottom: 1em;
+}
+</style>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<body>
+ <div>0000000000</div>
+ <div>헬로우월드헬로우월드헬로우월드헬로우월드헬로우월드</div>
+<script>
+for (let e of document.getElementsByTagName('div')) {
+ test(() => {
+ // All boxes should wrap to more than 1 line.
+ assert_greater_than(e.offsetHeight, 20);
+ }, e.textContent);
+}
+</script>
+</body>