- From: Mike Bremford via GitHub <sysbot+gh@w3.org>
- Date: Tue, 28 Apr 2020 20:09:56 +0000
- To: public-css-archive@w3.org
Well, that's a fair question I suppose. Before you can write a webpage using `initial-letters` you need browser support. Webkit has partial support, behind a prefix. It does lots well, but doesn't handle `initial-letter-wrap: all`, it doesn't let you set `initial-letters` on anything other than a ::first-letter pseudo-element (which makes some aspects of this untestable), and the bounds of the first-letter aren't quite right. My company has now built a full implementation of the spec as it is, although we're building for print, not websites. In my opinion, this part of css-inline is unnecessarily complex. I don't think it works properly for hanging baselines or top-aligned images. Alignment for replaced content is still a bit unanswered. The reference box for `shape-outside`, the whitespace trimming behaviour implied for `initial-letters-wrap: first` are not described at all, so we've had to guess (issues pending). And all of this is entirely as you'd expect of *any* specification that has had limited interest from implementers. It isn't a criticism, it's normal. So, with respect, I didn't open this issue to help you write your webpage. I'm trying to test the spec to see how well it works - to improve it[1]. Implementers hate incomplete specs; tightly defining the behaviour means we can write testcases (we love testcases); and no-one wants to waste time implementing something that doesn't fulfil the user requirements. Once it's shown to be easy to implement and cover all needs, it will be added to browsers. And _that_ will help you write your webpage. I fully appreciate that `baseline-shift: -2lh` is not as nice as `initial-letters: 3 3`, not least because "lh" units are still largely unsupported. But redefining the block alignment algorithm to one we already use for inline alignment makes this less of a special case, which is good for everyone. If I can make the argument for that successfully, we can talk syntax. [1] Also, I also left the last F2F having promised @fantasai I'd try to clean up the previous issue and make a clearer demonstration that regular alignment would work. Results TBD... -- GitHub Notification of comment by faceless2 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5015#issuecomment-620828320 using your GitHub account
Received on Tuesday, 28 April 2020 20:09:58 UTC