From 55bc11c55325966404b2d2e4cd251cb37eadc6a2 Mon Sep 17 00:00:00 2001 From: Florian Rivoal Date: Fri, 11 Sep 2015 17:13:16 +0900 Subject: [PATCH 1/4] [css-text-4] Bugfix, initial value of text-space-trim is none --- css-text-4/Overview.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css-text-4/Overview.bs b/css-text-4/Overview.bs index 830b89fe55b6..717e8a9a0235 100644 --- a/css-text-4/Overview.bs +++ b/css-text-4/Overview.bs @@ -109,7 +109,7 @@ White Space Trimming: the 'text-space-trim' property
 	Name: text-space-trim
 	Value: none | trim-inner || discard-before || discard-after
-	Initial: collapse
+	Initial: none
 	Applies to: all elements
 	Inherited: no
 	Percentages: n/a

From eb64ff315b6b43e19c9420f1182f94084437371a Mon Sep 17 00:00:00 2001
From: Florian Rivoal 
Date: Fri, 11 Sep 2015 17:11:45 +0900
Subject: [PATCH 2/4] [css-text-4] add preserve-auto and preserve-trim, explain
 the shorthand

---
 css-text-4/Overview.bs | 68 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 67 insertions(+), 1 deletion(-)

diff --git a/css-text-4/Overview.bs b/css-text-4/Overview.bs
index 717e8a9a0235..0d8597e316f7 100644
--- a/css-text-4/Overview.bs
+++ b/css-text-4/Overview.bs
@@ -36,7 +36,7 @@ White Space Collapsing: the 'text-space-collapse' property
 
 	
 	Name: text-space-collapse
-	Value: collapse | discard | preserve | preserve-breaks | preserve-spaces 
+	Value: collapse | discard | preserve | preserve-auto | preserve-trim | preserve-breaks | preserve-spaces
 	Initial: collapse
 	Applies to: all elements
 	Inherited: yes
@@ -65,6 +65,26 @@ White Space Collapsing: the 'text-space-collapse' property
 			from collapsing sequences of white space.
 			Segment breaks are preserved as forced line breaks.
 
+		
preserve-auto +
+ This value preserves white space and segment breaks as for ''preserve''. + However, the UA may visually collapse + the advance widths of preserved white space + that occur at the end of a line. + + If 'text-wrap' is ''text-wrap/normal'' or ''text-wrap/balance'', + whether or not there are soft wrap opportunities + in preserved sequences of white space, + and if yes where and under what condition, + is UA defined. + +
preserve-trim +
+ This value preserves white space and segment breaks as for ''preserve''. + However, the UA must visually collapse to 0 + the advance widths of all preserved white space + that occur at the end of a line. +
preserve-breaks
This value collapses white space as for ''collapse'', but preserves @@ -450,6 +470,52 @@ Shorthand for White Space and Wrapping: the 'white-space' property Note: This shorthand combines both inheritable and non-inheritable properties. If this is a problem, please inform the CSSWG. + The following table gives the mapping of the values of the shorthand to its longhands. + + + + + + + + + + + + + + + +
'white-space' + 'text-space-collapse' + 'text-wrap' + 'text-space-trim' +
''white-space/normal'' + ''text-space-collapse/collapse'' + ''text-wrap/normal'' + ''text-space-trim/none'' +
''pre'' + ''text-space-collapse/preserve'' + ''text-wrap/nowrap'' + ''text-space-trim/none'' +
''nowrap'' + ''text-space-collapse/collapse'' + ''text-wrap/nowrap'' + ''text-space-trim/none'' +
''pre-wrap'' + ''text-space-collapse/preserve'' + ''text-wrap/normal'' + ''text-space-trim/none'' +
''pre-wrap-auto'' + ''text-space-collapse/preserve-auto'' + ''text-wrap/normal'' + ''text-space-trim/none'' +
''pre-line'' + ''text-space-collapse/preserve-breaks'' + ''text-wrap/normal'' + ''text-space-trim/none'' +
+ Issue: Add details from level 3

From 57b084d76aac2e2e4997d8b16fb85f03f802a7f4 Mon Sep 17 00:00:00 2001 From: Florian Rivoal Date: Fri, 18 Sep 2015 15:40:59 +0900 Subject: [PATCH 3/4] [css-text-4] Mark preserve-trim at risk --- css-text-4/Overview.bs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/css-text-4/Overview.bs b/css-text-4/Overview.bs index 0d8597e316f7..113d885defa3 100644 --- a/css-text-4/Overview.bs +++ b/css-text-4/Overview.bs @@ -12,6 +12,7 @@ Editor: Koji Ishii, Invited Expert, kojiishi@gluesoft.co.jp Editor: Alan Stearns, Adobe Systems, stearns@adobe.com Abstract: This module defines properties for text manipulation and specifies their processing model. It covers line breaking, justification and alignment, white space handling, and text transformation. Ignored terms: segment break, segment breaks +At Risk: The ''preserve-trim'' of the 'text-space-collapse' property

@@ -85,6 +86,13 @@ White Space Collapsing: the 'text-space-collapse' property

the advance widths of all preserved white space that occur at the end of a line. + Note: the ''preserve-trim'' value is at risk. + + Issue: The CSSWG would appreciate feedback + on the use cases for this value, + to evaluate whether trimming leading spaces + could be needed as well. +
preserve-breaks
This value collapses white space as for ''collapse'', but preserves From 61897a588d8e0d2e9bd86cea008cb7d2439633b3 Mon Sep 17 00:00:00 2001 From: Florian Rivoal Date: Fri, 18 Sep 2015 15:41:31 +0900 Subject: [PATCH 4/4] [css-text-4] Say that preserve-auto should follow platform conventions --- css-text-4/Overview.bs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/css-text-4/Overview.bs b/css-text-4/Overview.bs index 113d885defa3..a210cb5eaf6c 100644 --- a/css-text-4/Overview.bs +++ b/css-text-4/Overview.bs @@ -79,6 +79,10 @@ White Space Collapsing: the 'text-space-collapse' property and if yes where and under what condition, is UA defined. + Both with regards to collapsing + and to soft wrap opportunities, + the UA should follow platform conventions. +
preserve-trim
This value preserves white space and segment breaks as for ''preserve''.