mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-11 13:42:52 +00:00
LibHTML: Implement the "margin" shorthand property
This is a very bulky way of doing this, and doesn't seem sustainable to implement every shorthand property this way, but it's a place to start. The "margin" CSS property now expands into its four longhands as far as my understanding of the specs. Note that shorthand expansion happens when we *resolve* style, not when we parse CSS. I'm not sure this is correct anymore, I think other UA's may actually expand shorthands into the declaration directly at parse these days. If so, we should do this at parsing as well.
This commit is contained in:
parent
e6e41e4fb8
commit
00d171e4d6
Notes:
sideshowbarker
2024-07-19 11:09:55 +09:00
Author: https://github.com/awesomekling
Commit: 00d171e4d6
4 changed files with 82 additions and 6 deletions
|
@ -5,4 +5,4 @@
|
|||
|
||||
RefPtr<StyleSheet> parse_css(const StringView&);
|
||||
RefPtr<StyleDeclaration> parse_css_declaration(const StringView&);
|
||||
|
||||
NonnullRefPtr<StyleValue> parse_css_value(const StringView&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue