Comments (2)
Duplicate of #10143.
from svelte.
Another interesting tidbit: adding an inner element and a selector that selects it works, but only when using CSS nesting:
For this component markup:
{#snippet blue()}
<div class="blue">
Blue
<div class="inner">Inner</div>
</div>
{/snippet}
<div class="veryblue">
{@render blue()}
</div>
.veryblue {
.blue {
background-color: skyblue;
.inner {
font-style: italic;
}
}
}
.veryblue .blue {
background-color: skyblue;
}
.veryblue .blue .inner {
font-style: italic;
}
from svelte.
Related Issues (20)
- Svelte 5: Rename `rendered.html` to `rendered.body` HOT 5
- Svelte5: `5.0.0-next.102` breaks `svelte/compiler` types
- Svelte 5: Event handlers break if a prop is placed after it if spread props exist HOT 1
- Svelte 5: When spread object passed to components changes all the output of $props is updated instead of only the necessary stuff HOT 6
- Svelte 4: $$props not working in customElement when setting properties with accessors
- Svelte 5 Event Handlers Should Error on Invalid Case In Typescript. HOT 5
- Svelte 5: only inject `push/init/pop` when necessary
- `Portal` Component HOT 2
- Svelte 5: error/warning follow-up tasks
- Svelte 5: Preview REPL `state.analysis` undefined? HOT 4
- Cross component input group HOT 1
- Cross component input group HOT 1
- Svelte 5 @next-114 fails with CompilerOptions runes true HOT 2
- Svelte 5: Warn when whitespace handling would differ from Svelte 4 HOT 2
- Svelte 5: Building an app fail when creating stores using `let name = $derived()` HOT 8
- Svelte 5: $state with quoted properties
- Svelte 5 Docs: Clarify underlying implementation of event handler property usage HOT 1
- Infinite loop while rendering page HOT 2
- Svelte 5 next: Works on @next-113 but not 114 HOT 3
- Warn on empty `aria-` attributes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte.