[csswg-drafts] [cssom][css-cascade] What should getComputedStyle say for 'line-height: normal' (#4249)

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

== [cssom][css-cascade] What should getComputedStyle say for 'line-height: normal' ==
https://drafts.csswg.org/cssom/#resolved-values
for line-height, it says

> The resolved value is the used value.

For a test like this

```
<!DOCTYPE html>
<input id=input>
<script>w(getComputedStyle(input).lineHeight)</script>
```

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7159

Safari gives `13px`, Chrome and Firefox give `normal`.

Given the definition of used value, I think Safari is correct.

What is correct if we assume "used value" is right?

If CSSOM currently matches Safari, should it be changed to match Chrome & Firefox instead?

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

Received on Wednesday, 28 August 2019 14:29:00 UTC