LibWeb: Simplify parsing of font-variant-east-asian

This commit is contained in:
Callum Law
2026-02-18 23:12:20 +13:00
committed by Sam Atkins
parent 75dd7b767f
commit d6b94951cf
Notes: github-actions[bot] 2026-02-20 22:04:02 +00:00
4 changed files with 66 additions and 73 deletions

View File

@@ -27,6 +27,14 @@ public:
bool properties_equal(TupleStyleValue const& other) const { return m_tuple == other.m_tuple; }
struct Indices {
struct FontVariantEastAsian {
static constexpr size_t Variant = 0;
static constexpr size_t Width = 1;
static constexpr size_t Ruby = 2;
};
};
private:
explicit TupleStyleValue(StyleValueTuple values)
: StyleValueWithDefaultOperators(Type::Tuple)