I was wondering. Isn't the page rendered on mobile and desktop based on user-agents? How would that work now?
@media (max-width: 550 px) {
body {
background-color: white;
}
}
turns the background white on small screens.It looks like there's more fine grained control in the new version.
It's an upgrade for the people who actually need to get an indication of the supported features and APIs of the user's browser. Otherwise, you should be using media queries.
[0] : https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queri...
More advanced webapps might occasionally need to do something fancier than that if the mobile vs desktop functionality is (for some reason) substantially different instead of just rearranged.
https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queri...