anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.23k stars 50 forks source link

Allow progressive enhancement using repeated CSS properties #187

Open marek-saji opened 1 month ago

marek-saji commented 1 month ago

Why?

When a browser doesn’t understand a CSS declaration, it ignores it. That fact is used to do progressive enhancement by specifying the same property twice — if second one is not supported, browser will fall back to the first one, e.g.

p {
  color: black;
  color: rgba(0, 0, 0, 0.5);
}