W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2016

[csswg-drafts] [css-inline] Is initial-letter in-flow or out-of-flow?

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Mon, 21 Nov 2016 04:42:40 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-190617554-1479703358-sysbot+gh@w3.org>
upsuper has just created a new issue for 

== [css-inline] Is initial-letter in-flow or out-of-flow? ==
It doesn't seem to be clear whether initial-letter is in-flow or 
out-of-flow. More specifically, is the box of initial-letter 
first-letter contained by its ancestors' box?

For example, if I have:
<style>div::first-letter { initial-letter: 2; }</style>
<div><span style="background: yellow">hello world</span></div>
does the first letter "h" has the yellow background as well? Also what
 if the `span` has `border`?

If the initial letter is out-of-flow, then the background color would 
not cover the initial letter. I believe it is how WebKit currently 
implements initial letter (it simply makes initial-letter floating). 
If the initial letter is in-flow, then initial letter would have the 
background color as well.

I guess the difference on their effects might not be very important, 
but it would significantly affect how they would be implemented. I 
think handling initial letter as out-of-flow is probably easier to 
implement (as shown by WebKit), but CSSWG should decide whether that 
is what we want.

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/743 using your GitHub 
Received on Monday, 21 November 2016 04:42:52 UTC

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