Skip to content

Commit

Permalink
[css-text] L3/L4 sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Mar 29, 2023
1 parent d758e15 commit 75cd70f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
26 changes: 22 additions & 4 deletions css-text-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2086,7 +2086,7 @@ Phase II: Trimming and Positioning</h4>
Otherwise, each [=preserved=] [=tab=] is rendered
as a horizontal shift that lines up
the start edge of the next glyph with the next [=tab stop=].
If this distance is less than 0.5<a value class=no-quote>ch</a>,
If this distance is less than ''0.5ch'',
then the subsequent [=tab stop=] is used instead.
<dfn lt="tab stop">Tab stops</dfn> occur at points
that are multiples of the [=tab size=]
Expand Down Expand Up @@ -3277,7 +3277,7 @@ Line Breaking Details</h3>
<li>
Preserved segment breaks, and--
regardless of the 'white-space' value--
any Unicode character with the the <code>BK</code> and <code>NL</code> line breaking class,
any Unicode character with the <code>BK</code> and <code>NL</code> line breaking class,
must be treated as forced line breaks.
[[!UAX14]]

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

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

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

* Allow ''hanging-puctuation: first'' to hang U+300 IDEOGRAPHIC SPACE
in order to accommodate plaintext indentation habits.
(<a href="https://github.com/w3c/csswg-drafts/issues/2462">Issue 2462</a>)
<blockquote>
<dl>
<dt>first
<dd>
An opening bracket<ins>,</ins><del> or</del> quote<ins>, or ideographic space</ins> at the start
of the [=first formatted line=]
of an element [=hangs=].
This applies to all characters in the Unicode categories Ps, Pf, Pi
plus the ASCII quote marks U+0027 ' APOSTROPHE and U+0022 " QUOTATION MARK
plus the ASCII quote marks U+0027 ' APOSTROPHE and U+0022 " QUOTATION MARK
<ins>and the IDEOGRAPHIC SPACE U+3000</ins>.
</dl>
</blockquote>

* Define that ''distribute'' computes to ''inter-character'', rather than merely behave the same;
allow ''text-justify/distribute'' to be implemented as a [=legacy value alias=],
since this is easier for some engines and does not matter for compatibility.
Expand Down
10 changes: 7 additions & 3 deletions css-text-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,13 @@ Case Transforms: the 'text-transform' property</h3>
It has no effect on the underlying content,
and must not affect the content of a plain text copy &amp; paste operation.

Note: The 'text-transform' property only affects the presentation layer;
correct casing for semantic purposes is expected to be represented
in the source document.
<wpt>
text-transform/text-transform-upperlower-105.html
</wpt>

Advisement: Authors must not rely on 'text-transform' for semantic purposes;
rather the correct casing and semantics should be encoded
in the source document text and markup.

<wpt>
text-transform/text-transform-copy-paste-001-manual.html
Expand Down

0 comments on commit 75cd70f

Please sign in to comment.