Modernizr
Modernizr copied to clipboard
siblinggeneral-check gives false negatives
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.
Can confirm this happens even with the latest sources. @jsBrian how do you feel about providing a PR to fix this issue?