- From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
- Date: Mon, 21 Nov 2016 04:42:40 +0000
- To: public-css-archive@w3.org
upsuper has just created a new issue for https://github.com/w3c/csswg-drafts: == [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: ```html <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 account
Received on Monday, 21 November 2016 04:42:52 UTC