Skip to content

Files

Latest commit

 

History

History
63 lines (45 loc) · 870 Bytes

selector-max-combinators.md

File metadata and controls

63 lines (45 loc) · 870 Bytes

Pattern: Too many combinators selectors

Issue: -

Description

This rule resolves nested selectors before counting the number of combinators selectors. Each selector in a selector list is evaluated separately.

Examples

int: Maximum combinators selectors allowed.

For example, with 2:

The following patterns are considered violations:

a b ~ c + d {}
a b ~ c {
  & > d {}
}
a b {
  & ~ c {
    & + d {}
  }
}

The following patterns are not considered violations:

a {}
a b {}
a b ~ c {}
a b {
  & ~ c {}
}
/* each selector in a selector list is evaluated separately */
a b,
c > d {}

Further Reading