Yes, `font-size: 1lh` resolves to the computed `line-height` of the parent, even if there is no cycle. But `line-height: 1em` resolves the the computed `font-size` of that element, not the parent. The above ensures that this won't be cyclic. So basically, for a non-root element, you first compute `font-size`, resolving font-relative units with the parent. This sets the all non-root units except `lh`. Then you compute `line-height`, using the previously calculated units, but resolving `lh` with the parent. This sets the `lh` unit. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5228#issuecomment-646004072 using your GitHub accountReceived on Thursday, 18 June 2020 13:05:38 UTC
This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:12 UTC