mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-15 20:49:41 +00:00
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:
parent
b2d55e4caa
commit
3644e75de1
Notes:
github-actions[bot]
2025-10-09 14:17:19 +00:00
Author: https://github.com/AtkinsSJ
Commit: 3644e75de1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6378
Reviewed-by: https://github.com/tcl3
9 changed files with 66 additions and 64 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue