3 ms·
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 specif
by smpetrey 11y ago
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.
- tobr 11y agoIn 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#Selector_Types https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity...