Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting a CSS rule with > breaks styling without producing an error #7643

Closed
maxlath opened this issue Jun 29, 2022 · 1 comment · Fixed by #7650
Closed

Starting a CSS rule with > breaks styling without producing an error #7643

maxlath opened this issue Jun 29, 2022 · 1 comment · Fixed by #7650

Comments

@maxlath
Copy link
Contributor

maxlath commented Jun 29, 2022

Describe the bug

Starting a CSS rule with > at the <style> root breaks the CSS rules from that point, without producing an error. Consequently, the developer is let wondering why those CSS rules have no effect.

I don't see how a child combinator (>) could be valid at a component root, so this should probably generate an error. The same is true for the sibling combinator (+), but that one at least already produces a Unused CSS selector warning, and does not result in the following CSS rules to be dropped.

Reproduction

See https://svelte.dev/repl/b8551c675fbd4f4e9b174d3f11000512?version=3.48.0

Notice the broken CSS output:

> >

Logs

No response

System Info

Svelte v3.48.0

Severity

annoyance

@Conduitry
Copy link
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 a pull request may close this issue.

2 participants