css-element-queries version: 1.0.2
Browser: Firefox 59.0.1 (64-bit)
OS: MacOS High Sierra 10.13.3
Issue - ResizeSensor.js:150
var position = window.getComputedStyle(element).getPropertyValue('position');
Here window.getComputedStyle(element) can return null at least on Firefox, and then the subsequent call to .getPropertyValue('position') will throw an error.
Fix
var computedStyle = window.getComputedStyle(element);
var position = computedStyle ? computedStyle.getPropertyValue('position') : null;
Versions
css-element-queries version: 1.0.2 Browser: Firefox 59.0.1 (64-bit) OS: MacOS High Sierra 10.13.3
Issue - ResizeSensor.js:150
Here
window.getComputedStyle(element)
can returnnull
at least on Firefox, and then the subsequent call to.getPropertyValue('position')
will throw an error.Fix
Related Firefox bug report
https://bugzilla.mozilla.org/show_bug.cgi?id=548397