Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 384 Bytes

File metadata and controls

33 lines (23 loc) · 384 Bytes

selector-root-no-composition

Disallow the composition of :root in selectors.

    a, :root {}
/** ↑  ↑
 * This type of composite selector */

Options

true

The following patterns are considered warnings:

a, :root {}
:root + a {}
html:root {}

The following patterns are not considered warnings:

:root {}