Modernizr icon indicating copy to clipboard operation
Modernizr copied to clipboard

siblinggeneral-check gives false negatives

Open jsBrian opened this issue 7 years ago • 1 comments

The siblinggeneral-check seems to return a false negative for every browser I tested it on (latest Chrome, FF, Edge etc).

In the test, it checks if elem.lastChild.offsetWidth == 200;, but this lastChild is a style-element, so elem.lastChild.offsetWidth returns 0.

jsBrian avatar Feb 01 '18 13:02 jsBrian

Can confirm this happens even with the latest sources. @jsBrian how do you feel about providing a PR to fix this issue?

rejas avatar Jul 05 '18 08:07 rejas