4 ms·
This seems like a reduction in readability from either declaring properties in an order such that browsers which don't support the syntax will still have a fall
by jessedhillon 10y ago
This seems like a reduction in readability from either declaring properties in an order such that browsers which don't support the syntax will still have a fallback declaration:
.foobar {
background: red; /* fallback declaration */
background: poorly-supported; /* preferred declaration */
}
or using platform-specific property prefixes.
Personally, I'd rather see the entire definition block for a selector in one place than have to consult multiple conditional declarations.
- uryga 10y agoyes, tbh it reminds me of #IFDEF. not entirely sure how i feel about that: it kinda makes sense but i think the fallback version is better. (unless the css ends up really different, then the ifdef approach makes sense)