|
|
|
|
|
by SynnVoid
610 days ago
|
|
For now, as Firefox support is not yet good,
We can use nested rules in CSS. HTML: <my-custom-element>
<p>This is a paragraph</p>
</my-custom-element> CSS: my-custom-element {
p {
color: blue;
}
} By choosing a unique name for the custom element, we achieve near the same functionality as @scope. |
|