LibWeb/CSS: Parse the CSS <syntax> type into a tree

`<syntax>` is a limited subset of the "value definition syntax" used in
CSS specs. It's used for `@property`'s `syntax` descriptor, and for the
`type()` function in `attr()`.
This commit is contained in:
Sam Atkins 2025-07-10 12:59:44 +01:00 committed by Tim Ledbetter
commit ded2207762
Notes: github-actions[bot] 2025-07-16 13:49:11 +00:00
8 changed files with 684 additions and 0 deletions

View file

@ -0,0 +1,17 @@
/*
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/OwnPtr.h>
#include <AK/Vector.h>
#include <LibWeb/Forward.h>
namespace Web::CSS::Parser {
OwnPtr<SyntaxNode> parse_as_syntax(Vector<ComponentValue> const&);
}