problematic line-height
values
#18
Labels
bug
Something isn't working
core
Affects the core endpoint
documentation
Improvements or additions to documentation
window.getComputedStyle
doesn't always return a pixel value, particularly when it evaluates tonormal
.style
valuegetComputedStyle
value18px
inherit
18px
initial
normal
normal
normal
revert
18px
unset
18px
mechanical-ragger fails for this test case (since normal evaluates to
NaN
).MDN suggests that the default is ~
1.2
, but chrome uses something closer to1.16
🥴Either way, relying on all UAs to use a reliable default here feels risky, so maybe we should log a warning in the console and not try to render the exclusion if we can't figure out the
line-height
? and probably update the README to note this.The text was updated successfully, but these errors were encountered: