From 65d4fb5339d7381748753d722e6300e12fd017ec Mon Sep 17 00:00:00 2001 From: Javier Fernandez Date: Thu, 29 Nov 2018 02:13:33 -0800 Subject: [PATCH] [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 --- .../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/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 css/css-text/overflow-wrap/overflow-wrap-break-word-006.html create mode 100644 css/css-text/white-space/break-spaces-004.html create mode 100644 css/css-text/white-space/break-spaces-005.html create mode 100644 css/css-text/white-space/break-spaces-006.html create mode 100644 css/css-text/white-space/break-spaces-007.html create mode 100644 css/css-text/white-space/break-spaces-008.html create mode 100644 css/css-text/white-space/pre-wrap-016.html create mode 100644 css/css-text/white-space/reference/white-space-break-spaces-005-ref.html create mode 100644 css/css-text/word-break/word-break-break-all-012.html create mode 100644 css/css-text/word-break/word-break-break-all-013.html diff --git a/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html b/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html index 660b7f163020a3..6f90f0c0cb8c00 100644 --- a/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html +++ b/css/css-text/overflow-wrap/overflow-wrap-break-word-002.html @@ -22,7 +22,7 @@

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

FAIL
+
FAIL