1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

LibWeb: Rough implementation of CSS namespace rule

This provides a rough implementation of the CSS @namespace rule.
Currently we just support default namespaces, namespace prefixes
are still to come.
This commit is contained in:
Jonah 2023-07-29 11:51:15 -05:00 committed by Sam Atkins
parent 3f7d97f098
commit 60e35f2a97
18 changed files with 266 additions and 3 deletions

View file

@ -0,0 +1,19 @@
<style>
* {
font: 20px SerenitySans;
}
a {
padding: 5px;
color: red;
}
</style>
<style>
@namespace url('http://www.w3.org/2000/svg');
a {
padding: 10px;
color: green;
}
</style>
<p>
<a href="#">Should be red</a>
</p>