Rendering issue with custom components #38
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
repos/svelte-sublime#38
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
My custom component has a custom attribute "style" where I pass the classes for the underlying actual html
@ildella Will dig into this asap. May simply come down to not having CSS source in style attributes, but hopefully I can get a working extension of the base CSS syntax highlighting that works with Svelte's brackets.
That said, technically style is a native html attribute that is being "misused" in this example. Though frankly it's somewhat moot since there are still cases where you'd want to interpolate component variables into an inline style. That said, you can work around the highlighting by doing something like this:
At the very least it would get ride of the error highlighting.
Supporting plain curly interpolation
{...}in CSS might be cumbersome as you can't really distinguish them from normal rule block punctuation. So it is barely possible to distinguish them or decide, whether curlies are part of a selector, property-name or value.Do components support inline styles? If not, that attribute could be excluded or just use
tag-generic-attributesfor them.