mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Get CSS @import rules working in new parser
Also added css-import.html, which tests the 3 syntax variations on `@import` statements. Note that the optional media-query parameter to `@import` is not handled yet.
This commit is contained in:
committed by
Andreas Kling
parent
8b2e76b838
commit
7439fbd896
Notes:
sideshowbarker
2024-07-18 07:43:07 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/7439fbd8966 Pull-request: https://github.com/SerenityOS/serenity/pull/9073 Reviewed-by: https://github.com/TobyAsE Reviewed-by: https://github.com/alimpfard
17
Base/res/html/misc/css-import.html
Normal file
17
Base/res/html/misc/css-import.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>@import test</title>
|
||||
<style>
|
||||
@import "css-import-1.css";
|
||||
@import url("css-import-2.css");
|
||||
@import url(css-import-3.css);
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<p class="first">If this is green, <code>@import "string";</code> works!</p>
|
||||
<p class="second">If this is green, <code>@import url("string");</code> works!</p>
|
||||
<p class="third">If this is green, <code>@import url(unquoted-string);</code> works!</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user