Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 548 Bytes

File metadata and controls

34 lines (24 loc) · 548 Bytes

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