nib icon indicating copy to clipboard operation
nib copied to clipboard

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

Open hungtuchen opened this issue 8 years ago • 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?

hungtuchen avatar Feb 14 '16 10:02 hungtuchen

Use PostCSS Autoprefixer plugin instead.

seleckis avatar May 25 '16 13:05 seleckis

Try to answer the question instead of free spam @seleckis

orta-sanz avatar May 25 '16 13:05 orta-sanz

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.

seleckis avatar May 26 '16 08:05 seleckis

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

acauamontiel avatar Feb 19 '23 14:02 acauamontiel