epiphany/node_modules/@ronilaukkarinen/stylelint-a11y/src/rules/content-property-no-static-value/README.md
2023-12-09 22:48:07 -08:00

548 B

content-property-no-static-value

Disallow CSS generated content except aria-label attribute content and empty strings.

Sources:

Options

true

The following pattern are considered violations:

.foo::before {
  content: 'Price: $50';
}

The following patterns are not considered violations:

.foo {
  content: '';
}
.foo {
  content: attr(aria-label);
}