selector-type-case
What it does
Section titled “What it does”Reports a type selector with capitals (A {}).
Why it matters
Section titled “Why it matters”HTML element names are matched without regard to case, so A and a select the same elements and capitals only add spellings. Lowercase is the convention and the one the markup uses.
To fix, write the selector in lowercase.
Example
Section titled “Example”...@container good-box (min-width: 1px) { a { color: red } }A, B.c:not(.dX) {}Configuration
Section titled “Configuration”css: lint: rules: selector-type-case: warn # off (default), warn, errorless: lint: rules: selector-type-case: warn # off (default), warn, errorscss: lint: rules: selector-type-case: warn # off (default), warn, errorEnabled by the presets: css/stylelint-standard.
Suppress one line with sudsy-disable-next-line selector-type-case in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.
| Tool | Rule | Match | What differs |
|---|---|---|---|
| stylelint | selector-type-case |
partial | differs from stylelint on camelCase SVG element names (clipPath) |