From 586cae9762bded54162cc753ffa35bcf5aaf16c9 Mon Sep 17 00:00:00 2001 From: Florian Rivoal Date: Tue, 15 Oct 2019 14:21:43 +0900 Subject: [PATCH] [css-text] Clarify handling of other space separators in white-space dfn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The definition of the various values of the white-space property in section 3 does not go into much detail about exactly how they work, and just provides a high level intro to what they do. The details are provided in section 4, and in particular 4.1 and 4.3 (so called “phase 1” and “phase 2” of white space processing). While this phase 2 has been updated (see https://github.com/w3c/csswg-drafts/issues/2500 https://github.com/w3c/csswg-drafts/issues/3879 https://github.com/w3c/csswg-drafts/issues/4180) to define that not only space characters, but also other space separators hang / don't hang / wrap / don't wrap, etc, based on the value of the white-space property, the high level definition of these values was not updated to reflect that. While this is not necessarily a bug, as it is already called out that details are in section 4, apparent contradictions or omissions can be confusing. Therefore, in the part of these definitions that explicitly talked about white space wrapping/hanging (or not), include other space separators as well, as defined in 4.3. --- css-text-3/Overview.bs | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/css-text-3/Overview.bs b/css-text-3/Overview.bs index 4521dbbeff2..bf59950cd8e 100644 --- a/css-text-3/Overview.bs +++ b/css-text-3/Overview.bs @@ -803,10 +803,13 @@ Text Processing
break-spaces
The behavior is identical to that of ''white-space/pre-wrap'', except that: - * Any sequence of preserved [=white space=] always takes up space, + * Any sequence of preserved [=white space=] + or [=other space separators=] + always takes up space, including at the end of the line. - * A line breaking opportunity exists after every preserved white space character, - including between [=white space characters=]. + * A line breaking opportunity exists after every preserved white space character + and after every [=other space separators=], + including between adjacent onces. overflow-wrap/overflow-wrap-break-word-002.html @@ -847,7 +850,9 @@ Text Processing white-space/break-spaces-tab-006.html - Such [=preserved=] [=white space characters=] take up space and do not [=hang=], + Such [=preserved=] [=white space characters=] + and [=other space separators=] + take up space and do not [=hang=], and thus affect the box's intrinsic sizes ([=min-content size=] and [=max-content size=]). @@ -906,7 +911,8 @@ Text Processing New Lines Spaces and Tabs Text Wrapping - End-of-line spaces + End-of-line [=spaces=] + End-of-line [=other space separators=] @@ -916,6 +922,7 @@ Text Processing Collapse Wrap Remove + Hang ''pre'' @@ -923,6 +930,7 @@ Text Processing Preserve No wrap Preserve + No wrap ''nowrap'' @@ -930,6 +938,7 @@ Text Processing Collapse No wrap Remove + Hang ''pre-wrap'' @@ -937,6 +946,7 @@ Text Processing Preserve Wrap Hang + Hang ''break-spaces'' @@ -944,6 +954,7 @@ Text Processing Preserve Wrap Wrap + Wrap ''pre-line'' @@ -951,6 +962,7 @@ Text Processing Collapse Wrap Remove + Hang