mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb/CSS: Allow descriptors to be shorthands
I was wrong when I added those notes before about this being impossible, it's *very* possible, for example with the `@page margin` descriptor. However, until we have a large number of these shorthands and not just a single example, we can get away with hard-coding support for it.
This commit is contained in:
parent
1aa5631610
commit
d8c6b872a3
Notes:
github-actions[bot]
2025-05-15 08:54:36 +00:00
Author: https://github.com/AtkinsSJ
Commit: d8c6b872a3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4735
5 changed files with 138 additions and 34 deletions
|
@ -45,4 +45,7 @@ private:
|
|||
Vector<Descriptor> m_descriptors;
|
||||
};
|
||||
|
||||
bool is_shorthand(AtRuleID, DescriptorID);
|
||||
void for_each_expanded_longhand(AtRuleID, DescriptorID, RefPtr<CSSStyleValue const>, Function<void(DescriptorID, RefPtr<CSSStyleValue const>)>);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue