LibWeb/CSS: Implement "parse with a <syntax>"

Uses the SyntaxNode tree to parse a list of ComponentValues into some
kind of StyleValue.
This commit is contained in:
Sam Atkins 2025-07-11 12:17:36 +01:00 committed by Tim Ledbetter
commit 0a5e8c2865
Notes: github-actions[bot] 2025-07-16 13:49:04 +00:00
6 changed files with 140 additions and 7 deletions

View file

@ -8,10 +8,13 @@
#include <AK/OwnPtr.h>
#include <AK/Vector.h>
#include <LibWeb/DOM/AbstractElement.h>
#include <LibWeb/Forward.h>
namespace Web::CSS::Parser {
OwnPtr<SyntaxNode> parse_as_syntax(Vector<ComponentValue> const&);
NonnullRefPtr<CSSStyleValue const> parse_with_a_syntax(ParsingParams const&, Vector<ComponentValue> const& input, SyntaxNode const& syntax, Optional<DOM::AbstractElement> const& element = {});
}