ISSUE-625: Provide way for user stylesheet to override specificity rules
cssSpecificity
Provide way for user stylesheet to override specificity rules
- State:
- CLOSED
- Product:
- CSS
- Raised by:
- James Nurthen
- Opened on:
- 2013-10-16
- Description:
- CSS Cascading and Inheritance http://www.w3.org/TR/css3-cascade/#cascading needs to provide a method to override the specificity rules to allow a user specified style to override author specified styles.
Take for example the following scenario. The user requires all text to have increased line spacing so they want to set
* {line-height: 2;!important} in their user CSS.
This works fine until the author has specified something like
UL LI {line-height: 1.1;} in the author CSS which, due to the higher specificity will override the user stylesheet despite the !important.
Those users who require more line spacing (or other requirements) need a method to be able to specify this in their user stylesheet and have this apply across all sites. - Related Actions Items:
- No related actions
- Related emails:
- No related emails
Related notes:
Migrated to https://github.com/w3c/css-a11y/issues/3.
Michael Cooper, 20 Apr 2017, 16:06:26Display change log