From b2f4b980c2e0cbb0360952ac028648cba9e7cfe9 Mon Sep 17 00:00:00 2001 From: Javier Fernandez Date: Thu, 31 Jan 2019 18:56:06 +0000 Subject: [PATCH] Bug 1502031 [wpt PR 13720] - [css-text] New value 'break-spaces' for the white-space property, a=testonly Automatic update from web-platform-tests [css-text] New value 'break-spaces' for the white-space property Finally the CSS WG decided [1] to move back the 'break-spaces' value to the 'white-space' property. This makes the parsing logic easier than the previous approach of using the 'overflow-wrap' property. This new value prevents the white-space sequence to collapse and gives breaking opportunities after every preserved white-space. https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces Additionally, unlike 'pre-wrap', non-collapsible spaces or tabs at the end of a line cannot be hung or visually collapsed, since we want them to be preserved and broken. [1] https://github.com/w3c/csswg-drafts/pull/2841 Bug: 767634 Change-Id: I55e888d4472de11c64c4b14e2710c6e3d1832e67 Reviewed-on: https://chromium-review.googlesource.com/c/1136543 Reviewed-by: Koji Ishii Commit-Queue: Javier Fernandez Cr-Commit-Position: refs/heads/master@{#623324} -- wpt-commits: 250f9793781f3dcab7f7a3ee9d22cbdf707bdf68 wpt-pr: 13720 --- .../overflow-wrap-break-word-002.html | 2 +- .../overflow-wrap-break-word-003.html | 2 +- .../overflow-wrap-break-word-004.html | 1 + .../overflow-wrap-break-word-006.html | 36 ++++++++++++++++++ .../white-space/break-spaces-004.html | 35 +++++++++++++++++ .../white-space/break-spaces-005.html | 33 ++++++++++++++++ .../white-space/break-spaces-006.html | 35 +++++++++++++++++ .../white-space/break-spaces-007.html | 34 +++++++++++++++++ .../white-space/break-spaces-008.html | 35 +++++++++++++++++ .../css-text/white-space/pre-wrap-016.html | 38 +++++++++++++++++++ .../white-space-break-spaces-005-ref.html | 16 ++++++++ .../word-break/word-break-break-all-010.html | 3 +- .../word-break/word-break-break-all-011.html | 3 +- .../word-break/word-break-break-all-012.html | 38 +++++++++++++++++++ .../word-break/word-break-break-all-013.html | 37 ++++++++++++++++++ 15 files changed, 344 insertions(+), 4 deletions(-) create mode 100644 testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-break-word-006.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/break-spaces-004.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/break-spaces-005.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/break-spaces-006.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/break-spaces-007.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/break-spaces-008.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/pre-wrap-016.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/reference/white-space-break-spaces-005-ref.html create mode 100644 testing/web-platform/tests/css/css-text/word-break/word-break-break-all-012.html create mode 100644 testing/web-platform/tests/css/css-text/word-break/word-break-break-all-013.html diff --git a/testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html b/testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html index 660b7f163020..6f90f0c0cb8c 100644 --- a/testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html +++ b/testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html @@ -22,7 +22,7 @@ div {

This test passes if there is nothing below this sentence. -

FAIL
+
FAIL