stylus/nib

width: max-content doesn't come with webkit and moz prefix

hungtuchen opened this issue · 4 comments

if I use

.foo
  width max-content

I only get

.foo {
  width: max-content;
}

Not the output as below I expected

.foo {
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}

Was that intentional?

Use PostCSS Autoprefixer plugin instead.

Try to answer the question instead of free spam @seleckis

This is not spam. Nib is old and is not developing for a year. New solutions are coming, so there is no need to use nib mixins which generates vendor prefixed. Nib should be updated to reduce mixins which could be duplicated by autoprefixer. Instead other useful mixins needed.

I created a plugin called Mantis Toolkit a few years ago in line with the new CSS solutions available.

So using the Mantis Toolkit in conjunction with PostCSS does everything the NIB did and even better.

https://github.com/acauamontiel/mantis-toolkit