MadLittleMods / postcss-increase-specificity

Why? Dealing with CSS you can't remove(mainly from a 3rd party). Increases specificity of selectors.
MIT License
51 stars 16 forks source link

Consider using \9 #11

Closed valtlai closed 7 years ago

valtlai commented 7 years ago

:not(#\9), where \9 is a tab character, can be used. It works in the same way as :not(#\20) but is one character shorter.

Other alternatives are \A, \C and \D.

valtlai commented 7 years ago

See PR #12

iamstarkov commented 7 years ago

What do we gain from having it one character shorter?

iamstarkov commented 7 years ago

(An ASCII whitespace is U+0009 TAB, U+000A LF, U+000C FF, U+000D CR, or U+0020 SPACE.)

so its effectively what we have today

MadLittleMods commented 7 years ago

I thought why not use a shorter one and save some bytes. But I understand this has no practical effect.

@valtlai, https://github.com/MadLittleMods/postcss-increase-specificity/pull/12#issuecomment-304317070

Seems good to me 🤔