Skip to content

fix!: tokenize escapes in dimension units and hyphen-prefixed idents - #357

Merged
bartveneman merged 4 commits into
mainfrom
claude/compassionate-davinci-wjk4ce
Nov 14, 2026
Merged

bartveneman merged 4 commits into
mainfrom
claude/compassionate-davinci-wjk4ce

Conversation

@bartveneman

Copy link
Copy Markdown
Member

Follow-up to #356. Per CSS Syntax, escapes are part of the identifier:

  • Dimension units: 1\70x is one Dimension with unit \70x. Breaking: legacy hacks like 0\9, 0\0 and 100px\9 are now a Dimension with an escaped unit instead of a Number/Dimension plus a separate Identifier, so consumers that detect these hacks need updating.
  • Idents starting with - and an escape (-\31 x, .-\31 x) are one ident/class selector instead of an operator plus ident (or an empty selector).

Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Package Size Increase

📦 Package 📏 Base Size 📏 Source Size 📈 Size Change
@projectwallace/css-parser 49.9 kB 49.9 kB +31 B

@pkg-pr-new

pkg-pr-new Bot commented Nov 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@projectwallace/css-parser@b8a2dfb

commit: b8a2dfb

@bartveneman
bartveneman merged commit 71718ca into main Nov 14, 2026
17 checks passed
@bartveneman
bartveneman deleted the claude/compassionate-davinci-wjk4ce branch November 14, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants