-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.0
-
MOODLE_400_STABLE
-
MDL-72677-stylelint-ignored-properties
-
Upgrading to new versions of stylelint at some point (around 8.x I think) pushed the "declaration-block-no-ignored-properties" rule out into a separate plugin. This languished for a while but has been recently updated and works well. I have a patch that adds it into package.json and enables it in .stylelintrc and it has found a minor issue in the boost theme (unexpected "z-index" with "position: static" - i.e. when a selector has a static position, its z-index is ignored).
This is a useful rule, as it flags redundant CSS properties and may help avoid certain classes of bug, or at least make debugging the CSS less confusing!