mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
39e0d06987
commit
372ae7c697
Notes:
github-actions[bot]
2025-11-03 11:28:37 +00:00
Author: https://github.com/AtkinsSJ
Commit: 372ae7c697
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6646
Reviewed-by: https://github.com/tcl3
1 changed files with 35 additions and 11 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue