-
Tried using CSS
supportsas an if/then toggle: --toggle: null; /* invalid width */ supports (width: var(--toggle)) {…} It doesn’t work. -
Browsers consider
width: var(--toggle)valid, even when the value of--toggleis not.
supports as an if/then toggle:
--toggle: null; /* invalid width */
supports (width: var(--toggle)) {…}
It doesn’t work.width: var(--toggle) valid, even when the value of --toggle is not.