Closed ted-dgk closed 1 month ago
What specifically isn't working as you'd expect? In your REPL, the .center-tbl
selector is seen as unused, but that's because you have the div with that class commented out.
<center-table>
should do what .center-tbl does. I just had .center-tbl in there to make sure the css was doing the right thing. In the REPL the inner div should be centered in the outer div. It works in S4 and in plain HTML. As I said, svelte is not including the css that goes along with the custom tag. Obviously I could just use the class (and am as a workaround) but in my projects I like to use custom tags for semantic reasons. This will break a lot of things for me.
Unsurprisingly globalizing works and the inner div is centered
:global(center-table) {
display: flex;
width: 100%;
justify-content: center;
}
The issue is that we are not adding the class to center-table
...gonna try to fix this now
Describe the bug
I have a custom HTML tag based on some css. Once in a while it seems to work mostly not and not in the small repo. Works in S4 and seemed more consistient in S5 until recently (sorry I can't be more precise). If I look in dev tools the tag is in the html but the css is not there. If I add the css manually, it works.
Reproduction
REPL
Logs
No response
System Info
Severity
annoyance