User-Style-Manager icon indicating copy to clipboard operation
User-Style-Manager copied to clipboard

Bad "!important" check: "!potato" works fine.

Open Drugoy opened this issue 12 years ago • 1 comments

Currently, seems like USM uses it's own rules, which don't fit the CSS standard.

toolbarbutton { background-color: red ! }
toolbarbutton { background-color: grey !potato; }

These styles work, although they shouldn't.

Obviously, there is a bad check in the code: it checks whether anything after "!" contains any letters other than "i", "m", "p", "o", "r", "t", "a" and "n".

So "!ports" won't work, because it fails this check due to present illegal letter "s", but "!port", "!ramp" and "!it" won't fail this check and the style will get applied.

Drugoy avatar May 05 '12 11:05 Drugoy

This will also be solved, once the property validation is done.

grssam avatar May 05 '12 12:05 grssam