Elektrine lite

← Feed

@sir_pepe@mastodon.social

Post #427478

2026-02-24 08:12 UTC

🤢 Behold! The most broken #CSS that still sort of works! I wondered why CSS.supports("filter", "blur(") returned true. Well, it turns out that a standard-conforming CSS parser does not distinguish between } and EOF or between ) and EOF. And filter function arguments are all optional. So ending the stylesheet with "blur(" has the same effect as "blur(0px)" with all braces properly closed. The whole story: https://mastodon.social/@sir_pepe/116119644759410243 In Action: https://codepen.io/SirPepe/pen/ByLBGrJ?editors=0100 CSS is awesome. #webdev

Replies (0)

No replies.