madeleineostoja / postcss-responsive-type

Automagical responsive typography, built on PostCSS
372 stars 21 forks source link

pixrem / cssnext incompatibility ? #16

Closed Paulmicha closed 8 years ago

Paulmicha commented 8 years ago

Tested with :

postcss([
  require("postcss-import")(),
  require("postcss-responsive-type")(),
  require("postcss-cssnext")(),
  require("postcss-extend")(),
  require("cssnano")()
])

And CSS :

html {
  font-size: 16px;
  font-size: responsive;
}

→ Error: pixrem: Root font-size is invalid

Paulmicha commented 8 years ago

Solution : require("postcss-cssnext")({features: {rem: {html: false}}})