Re: [csswg-drafts] [css-inline] initial-letter appliance and inheritance

Much better, but it's still not much clear what happens when `initial-letter` is specified on multiple nested `::first-letter`s or first-most inline-level descendants. There is only this note, inside parentheses, inside an example:

> (Note that the styling on `<b>` is ignored, as it has an ancestor already styled as an initial letter.)

I can't find the proper definition of this. Also, the interaction will probably depend on #2243.

And this definition

> an inline-level box which is the first child of a block container is a “first-most inline-level descendant” of that block container, as is the first child of an inline box that is itself a “first-most inline-level descendant” of the block container. (Note, this definition is recursive.)

seems to mean that any first child of an inline box that is itself a “first-most inline-level descendant” of the block container is also a “first-most inline-level descendant” of that block container, even if the first child is not inline-level (remember #1477, an inline box can have block-level children).

And I think it would be clearer without recursivity, e.g.

> an inline-level box is a “first-most inline-level descendant” of a block container if it's the first child of its parent box, and every of its ancestors is either an inline box which is also a first child, or an inclusive ancestor of the block container.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2184#issuecomment-391866971 using your GitHub account

Received on Thursday, 24 May 2018 21:20:42 UTC