LibWeb/CSS: Allow setting any property to CSS-wide keywords in typed OM

A minor thing I missed before. Gets us 4 WPT passes per property that's
tested, which is quite a lot.
This commit is contained in:
Sam Atkins 2025-10-03 11:40:03 +01:00 committed by Andreas Kling
commit 3644e75de1
Notes: github-actions[bot] 2025-10-09 14:17:19 +00:00
9 changed files with 66 additions and 64 deletions

View file

@ -78,6 +78,8 @@ WebIDL::ExceptionOr<NonnullRefPtr<StyleValue const>> CSSKeywordValue::create_an_
// identifier.
// If case-folding rules are in effect normally for that <ident> (such as Auto matching the keyword auto
// specified in the grammar for width), they apply to this comparison as well.
if (is_css_wide_keyword(m_value))
return true;
if (property.is_custom_property()) {
// FIXME: If this is a registered custom property, check if that allows the keyword.
return true;