Day 54: testing for the support of a selector

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
Support for a CSS property isn’t the only thing you can check with @supports(), you can also check support for a selector.I knew you can check whether a property is supported by the current browser and apply styles accordingly. @supports (display: grid) { .grid { display: block } } @supports selector(:has(a)) { .has { display: block }...