Skip to content

Comment on Firefox 155.0

Comments

Firefox now limits CSS to 75 levels of nested blocks and functions, preventing crashes that extremely deep nesting can cause under some circumstances. More deeply nested rules and values no longer parse.

Very interesting change. I’ve yet to see CSS more than 20 levels deep. Good to put a stop to such insanity.

Very interesting change. I’ve yet to see CSS more than 20 levels deep. Good to put a stop to such insanity.

I wonder what made them attempt to support such deep nesting in the first place.

Always possible there’s some buggy CSS compiler in the wild that ships a crazy rule and nobody tested in Firefox.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.