Skip to content

Commit 412bfea

Browse files
committed
[css-inline-3] Tighten up definition of which inline boxes can become initial letter boxes, with @loriooriol’s help
1 parent d2884db commit 412bfea

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

css-inline-3/Overview.bs

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -523,18 +523,20 @@ Creating Initial Letters: the 'initial-letter' property</h3>
523523
(such as for first word or first phrase styling),
524524
the 'initial-letter' property applies not just
525525
to the CSS-defined ''::first-letter'' pseudo-element,
526-
but also to any
527-
“first-most inline-level descendant” of a block container--
528-
an inline-level box which is the first child of a block container
529-
is a “first-most inline-level descendant” of that block container,
530-
as is the first child of an inline box
531-
that is itself a “first-most inline-level descendant” of the block container.
532-
(Note, this definition is recursive.)
533-
However, the 'initial-letter' property does not apply to any box
534-
that is itself a descendant of an <a>initial letter box</a>.
535-
It also does not apply to a box
536-
that is not positioned at the start of the line due to bidi reordering.
537-
526+
but also to
527+
inline-level boxes
528+
that are placed at the start of the first line.
529+
Specifically, 'initial-letter' also applies to
530+
any <a>inline-level box</a>
531+
that is the first child of its parent box
532+
and whose ancestors (if any) that are descendants of its <a>containing block</a>
533+
are all first-child <a>inline boxes</a>
534+
that have a <a lt="computed value">computed</a> 'initial-letter' value
535+
of ''initial-letter/none''.
536+
Furthermore, if 'initial-letter' is applied to an <a>inline-level box</a>
537+
that is not positioned at the start of the line due to bidi reordering,
538+
its <a>used value</a> is ''initial-letter/none''.
539+
538540
<div class="example">
539541
For example,
540542
the <code>&lt;span></code>, <code>&lt;em></code>, and <code>&lt;b></code> elements
@@ -1398,6 +1400,7 @@ Acknowledgments</h2>
13981400

13991401
David Baron,
14001402
David M Brown,
1403+
Oriol Brufau,
14011404
John Daggett,
14021405
Stephen Deach,
14031406
Sylvain Galineau,

0 commit comments

Comments
 (0)