Skip to content

Supports :host-context pseudo-class - #1299

Open
ArtBoguslavskiy wants to merge 1 commit into
parcel-bundler:masterfrom
ArtBoguslavskiy:master
Open

Supports :host-context pseudo-class#1299
ArtBoguslavskiy wants to merge 1 commit into
parcel-bundler:masterfrom
ArtBoguslavskiy:master

Conversation

@ArtBoguslavskiy

Copy link
Copy Markdown

Summary

Adds support for the :host-context() pseudo-class when parsing CSS selectors.

Motivation

Ionic uses :host-context() in its component styles. When Lightning CSS is used as the CSS transformer in Vite, parsing fails with:

[vite:css][lightningcss] 'host-context' is not recognized as a valid pseudo-class. Did you mean '::host-context' (pseudo-element) or is this a typo?

This prevents Lightning CSS from processing Ionic's generated CSS.

P.S. I'm not a Rust developer I'm primarily a front-end developer. This is my first contribution to a Rust project, so I hope my implementation is useful. If there's anything you'd like me to improve or implement differently, I'd be happy to update the PR.

@devongovett

Copy link
Copy Markdown
Member

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