mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
400 B
20 lines
400 B
5 years ago
|
<style>
|
||
|
@namespace url(http://www.w3.org/1999/xhtml);
|
||
|
@namespace svg url(http://www.w3.org/2000/svg);
|
||
|
|
||
|
/* This matches all XHTML <a> elements, as XHTML is the default unprefixed namespace */
|
||
|
:global(a) {
|
||
|
color: blue;
|
||
|
}
|
||
|
|
||
|
/* This matches all SVG <a> elements */
|
||
|
:global(svg|a) {
|
||
|
color: green;
|
||
|
}
|
||
|
|
||
|
/* This matches both XHTML and SVG <a> elements */
|
||
|
:global(*|a) {
|
||
|
color: red;
|
||
|
}
|
||
|
</style>
|