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:
parent
3f7d97f098
commit
60e35f2a97
18 changed files with 266 additions and 3 deletions
19
Tests/LibWeb/Layout/input/css-namespace-rule-no-match.html
Normal file
19
Tests/LibWeb/Layout/input/css-namespace-rule-no-match.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue