node-pixrem icon indicating copy to clipboard operation
node-pixrem copied to clipboard

Is `atrules` option still relevant ?

Open iamvdo opened this issue 10 years ago • 2 comments

Now that the module uses browserslist, is atrules option to force fallbacks in at-rules still relevant ?

Reminder:

  • if you target IE8, IE9 or IE10, rem fallbacks in at-rules are only needed in font shorthand and pseudo-element.
  • all other browsers support rem

Anyone has a use-case ?

iamvdo avatar Jul 01 '15 09:07 iamvdo

Hi @iamvdo ,

Forgive me if I'm being ignorant, but if I'm using respond.js for IE8 that will allow the use of media-queries, and therefore the px rules inside them are still relevant. Also, I am using rem for all my font-sizes too so I would still require atrules for IE9/10.

Thanks,

Rob

robzor avatar Dec 03 '15 13:12 robzor

I still require them for the reason @robzor mentioned, and there's also another use case. Opera has supported CSS3 media queries for years now, many years before any other browser supported them (so long in fact media queries back in the day were used as a CSS hack to supply styles just to Opera) and therefore long before rem was supported which arrived in Opera in version 12. IMO because of this pixrem should do fallbacks in atrules by default.

dustinwilson avatar Mar 20 '16 19:03 dustinwilson