From 1f9d76c7b8ffe4d1a672a3d9210042f93eae9f3d Mon Sep 17 00:00:00 2001 From: Simon Wanner Date: Mon, 14 Mar 2022 20:56:05 +0100 Subject: LibWeb: Invalidate styles after CSSImportRule loads This replicates the behavior of StyleSheetList::add_sheet, making sure the rules added by the imported style sheet are applied. --- Base/res/html/misc/css-import-relative/css-import-4a.css | 1 + Base/res/html/misc/css-import-relative/css-import-4b.css | 1 + Base/res/html/misc/css-import.html | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 Base/res/html/misc/css-import-relative/css-import-4a.css create mode 100644 Base/res/html/misc/css-import-relative/css-import-4b.css (limited to 'Base/res/html/misc') diff --git a/Base/res/html/misc/css-import-relative/css-import-4a.css b/Base/res/html/misc/css-import-relative/css-import-4a.css new file mode 100644 index 0000000000..196e1fd39e --- /dev/null +++ b/Base/res/html/misc/css-import-relative/css-import-4a.css @@ -0,0 +1 @@ +@import "css-import-4b.css"; diff --git a/Base/res/html/misc/css-import-relative/css-import-4b.css b/Base/res/html/misc/css-import-relative/css-import-4b.css new file mode 100644 index 0000000000..f5421c02d4 --- /dev/null +++ b/Base/res/html/misc/css-import-relative/css-import-4b.css @@ -0,0 +1 @@ +p.fourth { background-color: lime; } diff --git a/Base/res/html/misc/css-import.html b/Base/res/html/misc/css-import.html index 96f506671f..ce3dfa18ca 100644 --- a/Base/res/html/misc/css-import.html +++ b/Base/res/html/misc/css-import.html @@ -5,6 +5,7 @@ @import "css-import-1.css"; @import url("css-import-2.css"); @import url(css-import-3.css); +@import "css-import-relative/css-import-4a.css"; @@ -12,6 +13,7 @@

If this is green, @import "string"; works!

If this is green, @import url("string"); works!

If this is green, @import url(unquoted-string); works!

+

If this is green, relative @import resolves correctly!

-- cgit v1.2.3