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

lol :)

The trick is that you need to build the first letter before you can build the line, so there is no way the first letter can depend on the first line in its definition. I guess the definition should just be changed.

> Just think of a case with `width:10px; font-size:1px` + `::first-letter font-size:10px` (if you don't apply first-letter, you have a first-letter, but if you do, you don't; it just cannot work)

Now whether Firefox and Chrome/Edge are right is another question, but I doubt we will see much practical cases where this happen in the wild. I would assume that in Firefox, the first letter is automatically closed when you go to a new line, while in Edge/Chrome once its boundaries have been decided they are not revisited. I'm not sure if any of those behaviors make sense.

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

Received on Thursday, 1 February 2018 20:00:28 UTC