Remy Sharp has brought this issue up on Twitter 1. It would be useful if you could disable @supports
rules in order to test how the page renders in browsers that do not support a given CSS feature. Remy tried using a var()
:
:root {
--grid: grid;
}
@supports (display: var(--grid)) {
}
You would set --grid
to something nonsensical in order to disable the @supports
rule, but that doesn’t work. The condition is always true for any --grid
value, even when it’s undefined. Why is that? Would it be possible to change this, so that this pattern becomes possible? If not, is there another way to disable @supports
rules during debugging?