Skip to content

Commit 4b83157

Browse files
committed
[css-text-3] Clarify interactions of various phases of white space processing. web-platform-tests/wpt#20325
1 parent 1887978 commit 4b83157

File tree

1 file changed

+9
-58
lines changed

1 file changed

+9
-58
lines changed

css-text-3/Overview.bs

Lines changed: 9 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,8 +1194,9 @@ Text Processing</h3>
11941194

11951195
<p>For each inline (including anonymous inlines;
11961196
see [[CSS2]] section <a href="https://www.w3.org/TR/CSS2/visuren.html#anonymous">9.2.2.1</a>)
1197-
within an inline
1198-
formatting context, [=white space characters=] are handled as follows,
1197+
within an [=inline formatting context=],
1198+
[=white space characters=] are processed as follows
1199+
prior to [=line breaking=] and <a href="https://www.w3.org/TR/css-writing-modes-3/#text-direction">bidi reordering</a>,
11991200
ignoring <dfn noexport>bidi formatting characters</dfn>
12001201
(characters with the <code>Bidi_Control</code> property [[!UAX9]])
12011202
as if they were not there:
@@ -1350,10 +1351,6 @@ Text Processing</h3>
13501351
</wpt>
13511352
</ul>
13521353

1353-
<p>Then, the entire block is rendered. Inlines are laid out, taking bidi
1354-
reordering into account, and <a>wrapping</a> as specified by the
1355-
'white-space' property.</p>
1356-
13571354
<wpt pathprefix="/css/CSS2/">
13581355
bidi-text/bidi-002.xht
13591356
bidi-text/bidi-004.xht
@@ -1599,7 +1596,12 @@ Text Processing</h3>
15991596

16001597
<h4 id="white-space-phase-2">Phase II: Trimming and Positioning</h4>
16011598

1602-
<p>As each line is laid out,</p>
1599+
<p>Then, the entire block is rendered.
1600+
Inlines are laid out,
1601+
taking <a href="https://www.w3.org/TR/css-writing-modes-3/#text-direction">bidi reordering</a> into account,
1602+
and <a>wrapping</a> as specified by the 'white-space' property.
1603+
As each line is laid out,
1604+
16031605
<ol>
16041606
<li>A sequence of [=collapsible=] [=spaces=] at the beginning of a line
16051607
is removed.
@@ -5587,55 +5589,4 @@ Changes</h2>
55875589
white-space/text-space-collapse-discard-001.xht
55885590
white-space/text-space-collapse-preserve-breaks-001.xht
55895591
white-space/text-space-trim-trim-inner-001.xht
5590-
5591-
parsing/word-boundary-detection-valid.html
5592-
parsing/word-boundary-detection-invalid.html
5593-
parsing/word-boundary-detection-computed.html
5594-
parsing/word-boundary-expansion-valid.html
5595-
parsing/word-boundary-expansion-invalid.html
5596-
parsing/word-boundary-expansion-computed.html
5597-
word-boundary/word-boundary-001.html
5598-
word-boundary/word-boundary-002.html
5599-
word-boundary/word-boundary-003.html
5600-
word-boundary/word-boundary-004.html
5601-
word-boundary/word-boundary-005.html
5602-
word-boundary/word-boundary-006.html
5603-
word-boundary/word-boundary-007.html
5604-
word-boundary/word-boundary-008.html
5605-
word-boundary/word-boundary-009.html
5606-
word-boundary/word-boundary-010.html
5607-
word-boundary/word-boundary-011.html
5608-
word-boundary/word-boundary-012.html
5609-
word-boundary/word-boundary-013.html
5610-
word-boundary/word-boundary-014.html
5611-
word-boundary/word-boundary-015-manual.html
5612-
word-boundary/word-boundary-101.html
5613-
word-boundary/word-boundary-102.html
5614-
word-boundary/word-boundary-103.html
5615-
word-boundary/word-boundary-104.html
5616-
word-boundary/word-boundary-105.html
5617-
word-boundary/word-boundary-106.html
5618-
word-boundary/word-boundary-107.html
5619-
word-boundary/word-boundary-108.html
5620-
word-boundary/word-boundary-109.html
5621-
word-boundary/word-boundary-110.html
5622-
word-boundary/word-boundary-111.html
5623-
word-boundary/word-boundary-112.html
5624-
word-boundary/word-boundary-113.html
5625-
word-boundary/word-boundary-114.html
5626-
word-boundary/word-boundary-115.html
5627-
word-boundary/word-boundary-116.html
5628-
word-boundary/word-boundary-117.html
5629-
word-boundary/word-boundary-118.html
5630-
word-boundary/word-boundary-119.html
5631-
word-boundary/word-boundary-120.html
5632-
word-boundary/word-boundary-121.html
5633-
word-boundary/word-boundary-122.html
5634-
word-boundary/word-boundary-123.html
5635-
word-boundary/word-boundary-124.html
5636-
word-boundary/word-boundary-125.html
5637-
word-boundary/word-boundary-126.html
5638-
word-boundary/word-boundary-127.html
5639-
word-boundary/word-boundary-128.html
5640-
word-boundary/word-boundary-129.html
56415592
</wpt>

0 commit comments

Comments
 (0)