Bug 195180 - [css-values-4] Support font-relative lh and rlh unit
Summary: [css-values-4] Support font-relative lh and rlh unit
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://w3c-test.org/css/css-values/lh...
Keywords: InRadar, W3CTest
Depends on:
Blocks:
 
Reported: 2019-02-28 12:17 PST by Gérard Talbot
Modified: 2019-03-01 21:02 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gérard Talbot 2019-02-28 12:17:42 PST
CSS4 Values and Units, section 6.1.1 Font-relative lengths: the lh, rlh units
https://www.w3.org/TR/css-values-4/#font-relative-lengths
states

"
lh unit
    Equal to the computed value of the line-height property of the element on which it is used, converting normal to an absolute length by using only the metrics of the first available font. 

rlh unit
    Equal to the computed value of line-height property on the root element, converting normal to an absolute length as above.
"

Tests
-----

http://w3c-test.org/css/css-values/lh-rlh-on-root-001.html

http://w3c-test.org/css/css-values/lh-unit-001.html

http://w3c-test.org/css/css-values/lh-unit-002.html


Test results
- - - - - -

https://wpt.fyi/results/css/css-values?label=master

So far, no browser pass these 3 tests.


Correspondent Bugzilla Mozilla bug report:
https://bugzilla.mozilla.org/show_bug.cgi?id=1310170
Comment 1 Radar WebKit Bug Importer 2019-03-01 21:02:06 PST
<rdar://problem/48532318>