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

support ref:foo as a CSS selector #738

Merged
merged 2 commits into from
Aug 4, 2017
Merged

support ref:foo as a CSS selector #738

merged 2 commits into from
Aug 4, 2017

Conversation

Rich-Harris
Copy link
Member

This closes #693 — it allows the use of ref:foo as a CSS selector, which applies to any elements with that ref.

It's implemented as [svelte-xyz][svelte-ref-foo] because that turns out to be much easier than [svelte-xyz-foo]. So it sits between ID and class/attribute selectors in terms of specificity, which seems ok.

@Rich-Harris Rich-Harris merged commit 95606ad into master Aug 4, 2017
@Rich-Harris Rich-Harris deleted the gh-693 branch August 4, 2017 02:30
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.

using refs in css
1 participant