Quantity queries using has() selector
Here’s a handy little tool for generating CSS with :has() selectors in order to do quantity queries.
Hell has frozen over! Container queries might actually happen!
Here’s a handy little tool for generating CSS with :has() selectors in order to do quantity queries.
There’s really good browser support for display-mode media queries and this article does a really good job of running through some of the use cases for your progressive web app.
I think Bruce is onto something here:
It seems to me that browsers could do more to protect their users. Browsers are, after all, user agents that protect the visitor from pop-ups, malicious sites, autoplaying videos and other denizens of the underworld. They should also protect users against nausea and migraines, regardless of whether the developer thought to (or had the tools available to).
So, I propose that browsers should never respect
scroll-behavior: smooth;if a user prefers reduced motion, regardless of whether a developer has set the media query.
Huh. I don’t think I ever thought about nesting media queries …and yet I’m pleasantly surprised that it works!
Matthias has a good solution for dealing with the behaviour of CSS custom properties I wrote about: first set your custom properties with the fallback and then use feature queries (@supports) to override those values.
Five more articles on modern responsive design to close out the course.
A presentation at An Event Apart Seattle 2018.
A few things to remember if you’re going to using position:fixed.
Solving that pesky Windows Phone 7 problem.
Having fun with view transitions and scroll-driven animations.