Skip to content

test: add more unit test - #339

Open
Wxh16144 wants to merge 1 commit into
thysultan:masterfrom
Wxh16144-forks:wuxh/layer-queries-edge-case
Open

Wxh16144 wants to merge 1 commit into
thysultan:masterfrom
Wxh16144-forks:wuxh/layer-queries-edge-case

Conversation

@Wxh16144

@Wxh16144 Wxh16144 commented Dec 3, 2024

Copy link
Copy Markdown

I'd like to report an issue (though I'm not entirely sure whether it's a bug or just user error).

I found an issue report on ant-design/ant-design#51867.

After investigating, I traced it down to stylis having problems with parsing the @layer query.

Here's a minimal example:

import { compile, serialize, stringify } from "stylis"

serialize(compile(`@layer base{}`), stringify) // should return `@layer base{}`

The expected output is @layer base{}, but it actually returns @layer base, missing the {} part.

I also tested @emotion/styled, and it works as expected.

image

It seems like an edge case, and I believe it's a bug.

Thanks for your time. I hope this gets resolved soon.

@Wxh16144

Wxh16144 commented Jun 3, 2025

Copy link
Copy Markdown
Author

Are there any updates? If this is as expected, please close it in a timely manner.

This branch has not been deployed

No deployments
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.

1 participant