- From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
- Date: Tue, 17 Jan 2017 01:38:46 +0000
- To: public-css-archive@w3.org
frivoal has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-inline] Sizing problem with initial-letter-wrap: grid == https://drafts.csswg.org/css-inline/#initial-letter-wrapping says: > The rule for matching the character grid is 1ch × n + letter-spacing × (n - 1), where n is the size of the initial letter as specified by the initial-letter property. This seems wrong on two accounts: * This value is meant for CJK uses. The `ic` unit is the relevant one, not the `ch` unit. If we want to support aligning to a grid for latin monospaced fonts, we could make this depend on `initial-letter-align`, and use `ic` when it is set to `ideographic` and `ch` when it is set to `alphabetic`, but I am not sure it is worth doing, as Initial letters on monospaced latin text seems unusual. * `n` shouldn't be the size of the initial letter as specified by the initial-letter property. That would result in a too small exclusion area when the line gap is large (or when the initial-letter text is long). Here's an example of `initial-letter: 2` with a large line gap in vertical text. Each `[ ]` represents a `1ic` square. ``` [ ] ____|____ [ ] ' _____ ' [ ] / [ ] / [ ] ---+--- [ ] | [ ] | [ ] ’ [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] ``` Here, the exclusion area needs to be `8ic + 7 × letter-spacing`, not `2ic + 1 × letter-spacing`. I suggest replacing that sentence with something like this: > The size of the exclusion area in the inline direction must be `1ic × n + letter-spacing × (n - 1)` where n is the smallest integer for which the exclusion area is equal or larger than the advance measure of the initial letter. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/947 using your GitHub account
Received on Tuesday, 17 January 2017 01:38:52 UTC