LibWeb: Added simple parsing for (at)import rules

For now, the parsing is very crude, and parses only the document url.
The meta queries for the import are ignored.
This commit is contained in:
Sviatoslav Peleshko 2021-02-21 18:36:34 +02:00 committed by Andreas Kling
commit 54617e1a91
Notes: sideshowbarker 2024-07-18 21:52:15 +09:00
8 changed files with 248 additions and 24 deletions

View file

@ -27,6 +27,7 @@
#pragma once
#include <AK/NonnullRefPtr.h>
#include <AK/String.h>
#include <LibWeb/CSS/StyleSheet.h>
namespace Web::CSS {
@ -38,6 +39,8 @@ public:
bool in_quirks_mode() const;
URL complete_url(const String&) const;
private:
const DOM::Document* m_document { nullptr };
};