Re: [csswg-drafts] [css-inline] A question for the procedure to compute the resolved value of "line-height" (#3749)

FWIW, what Gecko ends up doing is here:

  https://searchfox.org/mozilla-central/rev/7c20ad925005fbad7b8e08813115f1ec7fa1c248/layout/generic/ReflowInput.cpp#2819

Using the font metrics of the first available font as specified by the style of the element. The default value for what to do is 2, which is `eCompensateLeading`, so:

  https://searchfox.org/mozilla-central/rev/7c20ad925005fbad7b8e08813115f1ec7fa1c248/layout/generic/ReflowInput.cpp#2831

  https://searchfox.org/mozilla-central/rev/7c20ad925005fbad7b8e08813115f1ec7fa1c248/modules/libpref/init/all.js#305

Then we adjust for the minimum font-size specified by the user (so that it's not reflected in the computed style), and for zoom here, though those are less interesting special-cases:

  https://searchfox.org/mozilla-central/rev/7c20ad925005fbad7b8e08813115f1ec7fa1c248/layout/style/nsComputedDOMStyle.cpp#2578

So no post-layout-dependent value for `normal`.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3749#issuecomment-475324234 using your GitHub account

Received on Thursday, 21 March 2019 17:19:40 UTC