Skip to content

Make export CSS collection robust to pseudo-element selectors - #170

Merged
AlexeyMz merged 2 commits into
reactodia:masterfrom
aindlq:fix-export-selector-collection
Aug 6, 2026
Merged

Make export CSS collection robust to pseudo-element selectors#170
AlexeyMz merged 2 commits into
reactodia:masterfrom
aindlq:fix-export-selector-collection

Conversation

@aindlq

@aindlq aindlq commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

querySelector threw on reset rules like *, ::before, ::after, aborting export.

Related to researchspace/researchspace#448

aindlq and others added 2 commits July 16, 2026 13:00
querySelector threw on reset rules like `*, ::before, ::after`, aborting export.
@AlexeyMz

AlexeyMz commented Aug 6, 2026

Copy link
Copy Markdown
Member

@aindlq Thanks for the fix! I checked it and it looks like everything OK except for one (unlikely) case if parenthesis is nested inside an attribute selector:

<div data-x(>...</div>
[data-x\\(] { color: red; }

I handled the case in the additional commit to the PR branch; I'll push and merge the changes soon.

@AlexeyMz
AlexeyMz merged commit 182d8ba into reactodia:master Aug 6, 2026
4 checks passed
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