parcel-bundler / parcel-bundler/lightningcss
semantic-ui-css stylesheet fails to parse
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7.7k
- Forks
- 302
- PR merge metrics
- No merged PRs in 30d
Description
While checking all Next.js examples against Next.js with Turbopack (which uses lightningcss by default) we got a parsing issue reported related to semantic-ui-css package.
The CSS in node_modules/semantic-ui-css/semantic.min.css results in ERROR: Unexpected token Delim('.').
After digging to find a minimal reproduction I've found that in particular this line causes the error, when it's removed the file parses correctly:
[data-tooltip][data-inverted]:after .header { background-color: none; color: #fff; }
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the selector from node_modules/semantic-ui-css/semantic.min.css using the linked lightningcss playground. Trace how the Rust CSS parser handles this selector and verify that the stylesheet parses without Unexpected token Delim('.') while preserving the reported input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100