Skip to content

tomhodgins/respec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

respec

Respec allows CSS authors to assign a specificity level to the rules they write separate from the specificity of the selector

Inspired by w3c/csswg-drafts#1170

Syntax

respec(selector, specificity, rule)
  • selector is a CSS selector
  • specificity is a number 0 or greater
  • rule is one or more CSS declarations separated by semicolons

Example

respec('div', 3, 'background: lime;')

Website

About

respec allows CSS authors to assign the specificity of a rule separately from the specificity of the selector

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published