Summary: Return "normal" for line-height's resolved value (the value returned from getComputedStyle()) rather than a concrete pixel value, if the computed value is "normal".

This aligns us with Blink, and seems the best option according to various working group discussions, see below. In particular, normal maps to something that is not completely representable by pixel values.

This change has been on Nightly and Beta 69 without any known issues other than internal consumers (the fonts panel and thunderbird).

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1579624

Standard: CSSWG resolution in https://github.com/w3c/csswg-drafts/issues/4249

Platform coverage: All

Preference: layout.css.line-height.normal-as-resolved-value.enabled

DevTools bug: N/A, this works fine in inspector, and required a fix to the fonts panel that landed long ago.

Other browsers: Blink matches this change, WebKit matches (some version of) current Gecko behavior.

WPT: Added with the implementation in bug 1536871.

Secure contexts: N/A

Is this feature enabled by default in sandboxed iframes? Yes

 -- Emilio
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to