A typical media query consists of a media type (screen, print, speech, etc) and one or more expressions, involving media features, which resolve to...
For further actions, you may consider blocking this person and/or reporting abuse
I didn't know about the aspect ratio media queries! 🤯
Seems like it could be useful, it's supported basically everywhere but Edge/IE (according to MDN page) 🧐
Yes! Aspect ratios are really great!
IMHO, still better to go with width and height, because you never know what quirks may pop up!
This is great, I didn't know about
hover
I'll have to think of an excuse to use it 😁Oh, I wrote an article about prefers-color-scheme 😉
dev.to/link2twenty/future-of-css-c...
Great article on prefers-color-scheme! Looking forward to read more in the future of CSS series 🙂
BTW, as for 8., Firefox 67 supports this too
prefers-color-scheme
too now. Actually, I've written about it in detail here:dev.to/rugk/dyk-your-website-can-g...
And because I wanted to toggle it in my browser and not (only) system, I've created an add-on for exactly that: addons.mozilla.org/de/firefox/addo...
Just a thing, prefers-color-scheme is already implemented on Safari/webkit (they proposed it) and under development by chronium and mozilla. 👍🏻
Ah, great! Just checked caniuse, seems like it's available in the technology preview version of safari. Thanks for pointing out. 🙂
Unfortunately can i use isn't always updated. Right now it doesn't flag "under development" for chrome and firefox. Here the status updates:
chromestatus.com/feature/510975897...
bugzilla.mozilla.org/show_bug.cgi?... (They're working on it)
Nice article, thank you!