W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

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

From: François REMY via GitHub <sysbot+gh@w3.org>
Date: Thu, 01 Feb 2018 20:00:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-362384364-1517515224-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC