Skip to content

Commit 75cd70f

Browse files
committed
[css-text] L3/L4 sync
1 parent d758e15 commit 75cd70f

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

css-text-3/Overview.bs

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,7 @@ Phase II: Trimming and Positioning</h4>
20862086
Otherwise, each [=preserved=] [=tab=] is rendered
20872087
as a horizontal shift that lines up
20882088
the start edge of the next glyph with the next [=tab stop=].
2089-
If this distance is less than 0.5<a value class=no-quote>ch</a>,
2089+
If this distance is less than ''0.5ch'',
20902090
then the subsequent [=tab stop=] is used instead.
20912091
<dfn lt="tab stop">Tab stops</dfn> occur at points
20922092
that are multiples of the [=tab size=]
@@ -3277,7 +3277,7 @@ Line Breaking Details</h3>
32773277
<li>
32783278
Preserved segment breaks, and--
32793279
regardless of the 'white-space' value--
3280-
any Unicode character with the the <code>BK</code> and <code>NL</code> line breaking class,
3280+
any Unicode character with the <code>BK</code> and <code>NL</code> line breaking class,
32813281
must be treated as forced line breaks.
32823282
[[!UAX14]]
32833283

@@ -6950,11 +6950,12 @@ Hanging Punctuation: the 'hanging-punctuation' property</h4>
69506950

69516951
<dt><dfn>first</dfn>
69526952
<dd>
6953-
An opening bracket or quote at the start
6953+
An opening bracket, quote, or ideographic space at the start
69546954
of the [=first formatted line=]
69556955
of an element [=hangs=].
69566956
This applies to all characters in the Unicode categories Ps, Pf, Pi
6957-
plus the ASCII quote marks U+0027 ' APOSTROPHE and U+0022 " QUOTATION MARK.
6957+
plus the ASCII quote marks U+0027 ' APOSTROPHE and U+0022 " QUOTATION MARK
6958+
and the IDEOGRAPHIC SPACE U+3000.
69586959

69596960
<wpt>
69606961
hanging-punctuation/hanging-punctuation-first-001.xht
@@ -8194,6 +8195,23 @@ Recent Changes</h3>
81948195
The following normative changes have been made since
81958196
the <a href="https://www.w3.org/TR/2020/CR-css-text-3-20201222/">December 2020 Candidate Recommendation</a>.
81968197

8198+
* Allow ''hanging-puctuation: first'' to hang U+300 IDEOGRAPHIC SPACE
8199+
in order to accommodate plaintext indentation habits.
8200+
(<a href="https://github.com/w3c/csswg-drafts/issues/2462">Issue 2462</a>)
8201+
<blockquote>
8202+
<dl>
8203+
<dt>first
8204+
<dd>
8205+
An opening bracket<ins>,</ins><del> or</del> quote<ins>, or ideographic space</ins> at the start
8206+
of the [=first formatted line=]
8207+
of an element [=hangs=].
8208+
This applies to all characters in the Unicode categories Ps, Pf, Pi
8209+
plus the ASCII quote marks U+0027 ' APOSTROPHE and U+0022 " QUOTATION MARK
8210+
plus the ASCII quote marks U+0027 ' APOSTROPHE and U+0022 " QUOTATION MARK
8211+
<ins>and the IDEOGRAPHIC SPACE U+3000</ins>.
8212+
</dl>
8213+
</blockquote>
8214+
81978215
* Define that ''distribute'' computes to ''inter-character'', rather than merely behave the same;
81988216
allow ''text-justify/distribute'' to be implemented as a [=legacy value alias=],
81998217
since this is easier for some engines and does not matter for compatibility.

css-text-4/Overview.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,13 @@ Case Transforms: the 'text-transform' property</h3>
580580
It has no effect on the underlying content,
581581
and must not affect the content of a plain text copy &amp; paste operation.
582582

583-
Note: The 'text-transform' property only affects the presentation layer;
584-
correct casing for semantic purposes is expected to be represented
585-
in the source document.
583+
<wpt>
584+
text-transform/text-transform-upperlower-105.html
585+
</wpt>
586+
587+
Advisement: Authors must not rely on 'text-transform' for semantic purposes;
588+
rather the correct casing and semantics should be encoded
589+
in the source document text and markup.
586590

587591
<wpt>
588592
text-transform/text-transform-copy-paste-001-manual.html

0 commit comments

Comments
 (0)