Open TxHawks opened 6 years ago
Whenever passing a float as the value of a max-width query, matches returns false even when the test should pass. Tested this with both px and em based queries.
max-width
matches
false
px
em
Expected behavior:
// After polyfilling matchMedia window.innerWidth = 700; window.outerWidth = 700; window.matchMedia('(max-width: 2.5em)').matches; // => true
Actual behavior:
// After polyfilling matchMedia window.innerWidth = 700; window.outerWidth = 700; window.matchMedia('(max-width: 2.5em)').matches; // => false window.matchMedia('(max-width: 3em)').matches; // => true
To add to the above, float min-width queries always match
min-width
Was there any movement on this?
Whenever passing a float as the value of a
max-width
query,matches
returnsfalse
even when the test should pass. Tested this with bothpx
andem
based queries.Expected behavior:
Actual behavior: