diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2019-01-24 20:55:37 -0500 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2019-01-24 23:13:56 -0500 |
commit | bdaf11b099f86ba6cb5c9882ead16d46f6db3ca7 (patch) | |
tree | d283874ad14fc52bd3ed0ee7ed2fcdf97c1e00d4 /tests/wpt/web-platform-tests/css/css-text/overflow-wrap | |
parent | 43e21dc845c7e7c930e6cdbb31b218fd80eddf2e (diff) | |
download | servo-bdaf11b099f86ba6cb5c9882ead16d46f6db3ca7.tar.gz servo-bdaf11b099f86ba6cb5c9882ead16d46f6db3ca7.zip |
Update web-platform-tests to revision 388ba3a049a3473b1945b9f8f81e9d6e342a249e
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-text/overflow-wrap')
4 files changed, 39 insertions, 2 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html index 660b7f16302..6f90f0c0cb8 100644 --- a/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html +++ b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html @@ -22,7 +22,7 @@ div { </style> <p>This test passes if there is nothing below this sentence. -<div> FAIL <div> +<div> FAIL </div> <!-- white-space:break-spaces should cause the spaces at the end of the line to be preserved. Since there is an allowed break point between the first space and the F, diff --git a/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-003.html b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-003.html index 6203b55e9c6..05e570bbb13 100644 --- a/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-003.html +++ b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-003.html @@ -22,4 +22,4 @@ div { </style> <p>This test passes if the word FAIL does not appear below. -<div>PASS FAIL<div> +<div>PASS FAIL</div> 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 index b277319cd23..5f36410feba 100644 --- 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 @@ -3,6 +3,7 @@ <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-pre-wrap"> <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."> diff --git a/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-006.html b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-006.html new file mode 100644 index 00000000000..6dc1b4dff52 --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-006.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"> +<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; +} +.test { + color: green; + line-height: 1em; + width: 5ch; + white-space: break-spaces; + 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> |