Skip to content

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

@zcorpan

Description

@zcorpan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions