evanw / evanw/esbuild

Potentially update CSS nesting for additional spec changes

Open
#4,063 1 comment 5 reactions 0 assignees View on GitHub
css
Dominant language
Go
Stars
40.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

I just became aware that Chrome recently changed how CSS nesting works again: https://web.dev/blog/css-nesting-cssnesteddeclarations. Specifically rules consisting of mixed nested and non-nested CSS now resolve in a different order than before. This should be investigated to understand exactly what changed and what should be done about it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked web.dev article and inspect esbuild's CSS nesting implementation to determine which mixed nested and non-nested rule behavior changed. Compare the current behavior with the updated specification, then establish whether an implementation change or regression tests are needed; done means the required follow-up is identified and covered appropriately.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
compilers, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.