[csswg-drafts] [css-inline-3] initial-letters changing used, not computed font-siize (#4988)

faceless2 has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-inline-3] initial-letters changing used, not computed font-siize ==
An element used for `initial-letters` will have its _used_ font-size adjusted based on the algorithm specified in [css-inline-3](https://drafts.csswg.org/css-inline-3/#sizing-initial-letters). However its _computed_ font size remains unchanged.

This is a problem for any child of the "initial-letters" element that refers to the parent font size as part of a style property - for example, if a child sets `font-size: 0.5em`, it will be 50% of the font-size the parent _would have been_, had it not been an initial-letter.

```html
<p style="font-size: 20px; line-height: 1">
 <span style="initial-letters:3">
  A
  <span style="font-size: 0.5em; baseline-shift: 0.5em">
   B
  </span>
 </span>
</p>
```
The letter "A" has a computed font-size of 60px. The letter "B" has a font-size and baseline-shift of 10px, instead of the 30px an author would expect. Anyone creating superscript text as part of an initial letter would encounter this issue.

This issue is migrated from item 6 in https://github.com/w3c/csswg-drafts/issues/4171. There was considerable discussion of this in the January 2020 F2F, which is listed in the [minutes](https://github.com/w3c/csswg-drafts/issues/4171#issuecomment-578112818) however no resolution was reached.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4988 using your GitHub account

Received on Wednesday, 22 April 2020 14:51:09 UTC