Re: [csswg-drafts] [css-inline] Initial Letter selection and hanging punctuation

Checked in spec text to exclude hanging punctuation from being measured as part of the initial letter's box. This better clarifies that when there is hanging punctuation, it is not considered when positioning the initial letter. It has the effect, however, that the punctuation may be drawn outside the initial letter box (since it is not measured when fitting the box to the initial letter contents).

The alternative would be to add a magical negative margin equal to the advance of the hanging punctuation. This would preserve the behavior of aligning the initial letter as if it didn't have the punctuation, but ensure that it is included in the initial letter box (which matters if you happen to make it visible).

Thoughts?


A related, but independent question is: should we allow `initial-letter` to apply to an inline element that is not the first-most descendant of the block container, but is preceded only by hanging punctuation?

Note, the issue of a pseudo-element for controlling `::first-letter` punctuation is filed as https://github.com/w3c/csswg-drafts/issues/2040

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

Received on Thursday, 24 May 2018 20:37:23 UTC