Login
You're viewing the functional.cafe public feed.
  • Nov 12, 2026, 8:28 PM

    Update, it's not an infinite loop, it just takes almost two minutes to render, and that's longer than the oss-fuzz timeout. 🤔

    CSS people, if I have

    some-selector { }

    i.e. a rule with no declarations, is that always a no-op? Can I just skip matching that selector?

    💬 2🔄 0⭐ 0

Replies

  • Nov 12, 2026, 8:56 PM

    Optimization tip: sometimes, checking that you have nothing to do is cheaper than doing nothing millions of times.

    💬 0🔄 0⭐ 0
  • Nov 12, 2026, 8:44 PM

    @federicomena CSS rules with no declarations should have no effect, yeah. but notice rules may contain things other than declarations inside (nested rules, nested statements such as `@media` at-rules, etc)

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0