Re:Reasonable System for CSS Stylesheet Structure
by smpetrey on Tuesday November 03, 2015 @12:16PM
(#10500932)
I was under the impression that child selectors are specific in nature, and they should be used later in the sheet, when declarations become increasingly specific.
[ Parent
| on HN ]
Re:Reasonable System for CSS Stylesheet Structure
by tobr on Tuesday November 03, 2015 @12:41PM
(#10501125)
In a general sense, the child combinator is "more specific", i.e. there are fewer elements that can match it. Combinators do not affect specificity though.
See https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity...