Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 441 Bytes

content-property-no-static-value.md

File metadata and controls

31 lines (22 loc) · 441 Bytes

Pattern: Use of CSS-generated content

Issue: -

Description

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

Examples

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);
}