mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:57:35 +00:00
LibWeb: Actually incorporate style from imported style sheets
This commit is contained in:
parent
1b262f8c89
commit
7b55d79d3a
5 changed files with 40 additions and 2 deletions
5
Tests/LibWeb/Layout/input/css-import-rule-sheet-1.css
Normal file
5
Tests/LibWeb/Layout/input/css-import-rule-sheet-1.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
@import "css-import-rule-sheet-2.css";
|
||||
|
||||
body {
|
||||
background: green;
|
||||
}
|
3
Tests/LibWeb/Layout/input/css-import-rule-sheet-2.css
Normal file
3
Tests/LibWeb/Layout/input/css-import-rule-sheet-2.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
body {
|
||||
font-size: 50px;
|
||||
}
|
7
Tests/LibWeb/Layout/input/css-import-rule.html
Normal file
7
Tests/LibWeb/Layout/input/css-import-rule.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<style>
|
||||
@import "css-import-rule-sheet-1.css";
|
||||
* {
|
||||
font-family: 'SerenitySans';
|
||||
}
|
||||
</style>
|
||||
Crazy
|
Loading…
Add table
Add a link
Reference in a new issue