Re:Media Queries are a Hack
by mistercow on Thursday April 04, 2013 @10:14PM
(#5496472)
>Currently, we generally use preprocessors such as LESS or Sass to compile from some more improved syntax into usable CSS2/CSS3 before serving (a la CoffeScript->JavaScript).
Unfortunately, even for static CSS, that's not going to be practical for element queries. You could do it in theory, but in practice, you'd end up generating tons and tons of CSS for even very simple sites.
>A shim is generally meant to be there just in case some feature (present in some modern browsers) isn't available in the current browser;
Unfortunately, even for static CSS, that's not going to be practical for element queries. You could do it in theory, but in practice, you'd end up generating tons and tons of CSS for even very simple sites.
>A shim is generally meant to be there just in case some feature (present in some modern browsers) isn't available in the current browser;
That's why I put "shim-first" in quotes.