postcss-short icon indicating copy to clipboard operation
postcss-short copied to clipboard

Removes !important flag

Open gavinmcfarland opened this issue 5 years ago • 1 comments

Hi, I noticed this by accident, but postcss-short I believe is not accounting for the CSS !important flag.

I noticed this with font-size.

For example:

p {
  font-size: inherit !important;
}

Results in:

p {
  font-size: inherit;

I'm not sure if other properties have the same issue, I can check when I get a chance.

gavinmcfarland avatar Mar 16 '20 23:03 gavinmcfarland

@limitlessloop https://github.com/csstools/postcss-short-font-size/blob/master/test/basic.css#L6 and https://github.com/csstools/postcss-short-font-size/blob/master/test/basic.expect.css#L6 explain everything

bluishoul avatar Jul 28 '21 07:07 bluishoul