Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 583 Bytes

selector-nest-combinators.md

File metadata and controls

43 lines (28 loc) · 583 Bytes

Pattern: Malformed combinator nesting in selector

Issue: -

Description

Require or disallow nesting of combinators in selectors.

Examples of selectors without nesting of combinators:

.foo .bar {}

.foo.bar {}

.foo > .bar {}

.foo:hover {}

Corresponding selectors with combinators nested:

.foo {
  .bar {}
}

.foo {
  &.bar {}
}

.foo {
  & > .bar {}
}

.foo {
  &:hover {}
}

Further Reading