Re: [csswg-drafts] [css-pseudo] Multi-line ::first-letter

> The problem is that you seem to want the first-letter to not exist if all the glyphs of the first letter cannot fit the first line

Well it's not that I want it, it's what the spec says if I understand correctly. But I just noticed neither Firefox nor Edge require a typographic letter unit, just punctuation suffices to create a `::first-letter`, https://jsfiddle.net/pp4euopt/1/. So then it makes sense `::first-line` doesn't disappear when the typographic letter unit dos not fit in the first line.

So I think that:

 - The spec should standardize what Firefox and Edge do and not require a typographic letter unit.
 - `::first-letter` should be restricted to the first line, because it is supposed to inherit from `::first-line`.

   On Chrome, this means that `::first-line` can affect multiple lines, which is bad.

   On Edge, this means that not all `::first-letter` pseudo-elements inherit from `::first-line`, which contradicts CSS Pseudo.

So Firefox does it correctly.

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

Received on Thursday, 1 February 2018 22:11:19 UTC