Skip to content

Supports :target-before/after/current pseudo-class - #1185

Merged
devongovett merged 4 commits into
parcel-bundler:masterfrom
yisibl:add-target-pseudo-class
May 17, 2026
Merged

devongovett merged 4 commits into
parcel-bundler:masterfrom
yisibl:add-target-pseudo-class

Conversation

@devongovett

devongovett commented Mar 16, 2026 •

Copy link
Copy Markdown
Member

Should this be behind a flag or something? My understanding is that this spec is still in early draft/prototype stage, only supported in Chrome, and both WebKit and Firefox have concerns with it (W3C TAG too). Seems early to treat as standard. The current state isn't the worst because it's just a warning, but I suppose we could add a draft flag. wdyt?

@yisibl

yisibl commented Mar 16, 2026

Copy link
Copy Markdown
Contributor Author

I think that's fine.

The new features added in css-overflow-5 are currently only implemented in Chrome, so they can be controlled via flags for now.
https://drafts.csswg.org/css-overflow-5/#scroll-navigation
@yisibl

yisibl commented Mar 17, 2026

Copy link
Copy Markdown
Contributor Author

@devongovett Add scroll_navigation_controls flag in e200dd5

@devongovett
devongovett merged commit 22bdda3 into parcel-bundler:master May 17, 2026
3 checks passed
@yisibl
yisibl deleted the add-target-pseudo-class branch May 18, 2026 02:33
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.

'target-current' is not recognized as a valid pseudo-class

2 participants