summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Parser
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-18 11:49:19 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-18 11:51:02 +0100
commit00d171e4d6485d6366e296eb05c730dabc6fe7b6 (patch)
treea2de376f05cfebc5249d231abc239549beaea39f /Libraries/LibHTML/Parser
parente6e41e4fb888918a3d75e6c112a3f5c996bb3393 (diff)
downloadserenity-00d171e4d6485d6366e296eb05c730dabc6fe7b6.zip
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.
Diffstat (limited to 'Libraries/LibHTML/Parser')
-rw-r--r--Libraries/LibHTML/Parser/CSSParser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibHTML/Parser/CSSParser.h b/Libraries/LibHTML/Parser/CSSParser.h
index 050b0dd8c7..5ed90467d7 100644
--- a/Libraries/LibHTML/Parser/CSSParser.h
+++ b/Libraries/LibHTML/Parser/CSSParser.h
@@ -5,4 +5,4 @@
RefPtr<StyleSheet> parse_css(const StringView&);
RefPtr<StyleDeclaration> parse_css_declaration(const StringView&);
-
+NonnullRefPtr<StyleValue> parse_css_value(const StringView&);