1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:37:45 +00:00

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
parent 04d67d0239
commit 54617e1a91
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 };
};