LibWeb/CSS: Reformat anchor-size() allowed properties, one per line

Having them grouped as they were is nice, but clang-format 21 really
hates these having multiple values per line.
This commit is contained in:
Sam Atkins 2025-10-28 16:16:10 +00:00
parent 39e0d06987
commit 372ae7c697
Notes: github-actions[bot] 2025-11-03 11:28:37 +00:00

View file

@ -954,21 +954,45 @@ RefPtr<StyleValue const> Parser::parse_anchor_size(TokenStream<ComponentValue>&
static Array allowed_property_ids = {
// inset properties
PropertyID::Inset,
PropertyID::Top, PropertyID::Right, PropertyID::Bottom, PropertyID::Left,
PropertyID::InsetBlock, PropertyID::InsetBlockStart, PropertyID::InsetBlockEnd,
PropertyID::InsetInline, PropertyID::InsetInlineStart, PropertyID::InsetInlineEnd,
PropertyID::Top,
PropertyID::Right,
PropertyID::Bottom,
PropertyID::Left,
PropertyID::InsetBlock,
PropertyID::InsetBlockStart,
PropertyID::InsetBlockEnd,
PropertyID::InsetInline,
PropertyID::InsetInlineStart,
PropertyID::InsetInlineEnd,
// margin properties
PropertyID::Margin,
PropertyID::MarginTop, PropertyID::MarginRight, PropertyID::MarginBottom, PropertyID::MarginLeft,
PropertyID::MarginBlock, PropertyID::MarginBlockStart, PropertyID::MarginBlockEnd,
PropertyID::MarginInline, PropertyID::MarginInlineStart, PropertyID::MarginInlineEnd,
PropertyID::MarginTop,
PropertyID::MarginRight,
PropertyID::MarginBottom,
PropertyID::MarginLeft,
PropertyID::MarginBlock,
PropertyID::MarginBlockStart,
PropertyID::MarginBlockEnd,
PropertyID::MarginInline,
PropertyID::MarginInlineStart,
PropertyID::MarginInlineEnd,
// sizing properties
PropertyID::Width, PropertyID::MinWidth, PropertyID::MaxWidth,
PropertyID::Height, PropertyID::MinHeight, PropertyID::MaxHeight,
PropertyID::BlockSize, PropertyID::MinBlockSize, PropertyID::MaxBlockSize,
PropertyID::InlineSize, PropertyID::MinInlineSize, PropertyID::MaxInlineSize,
PropertyID::Width,
PropertyID::MinWidth,
PropertyID::MaxWidth,
PropertyID::Height,
PropertyID::MinHeight,
PropertyID::MaxHeight,
PropertyID::BlockSize,
PropertyID::MinBlockSize,
PropertyID::MaxBlockSize,
PropertyID::InlineSize,
PropertyID::MinInlineSize,
PropertyID::MaxInlineSize,
// self-alignment properties
PropertyID::AlignSelf, PropertyID::JustifySelf, PropertyID::PlaceSelf,
PropertyID::AlignSelf,
PropertyID::JustifySelf,
PropertyID::PlaceSelf,
// FIXME: position-anchor
// FIXME: position-area
};