DEV Community

IEYT
IEYT

Posted on

I used the new feature in chrome and edge(Called If() ).

So if you don't know, Chrome and Edge 137(along with Chromium OFC) have a new CSS feature called if(), yes we have if and else now in CSS! So if you're on Non chromium based browsers, you haven't gotten the feature yet. I use Edge 137.

Top comments (1)

Collapse
 
ieyt profile image
IEYT

NO JS Scripting btw, So this is like CSS scripting. I mean :has is also is cool. My analogy is ":has is like the eventlistener in JS, and If is obviously if is if in JS"