diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-30 12:04:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-30 12:04:15 +0200 |
commit | 0d5be35c1f39c258af06a053a4a44fc91e868a88 (patch) | |
tree | 8d7c1e57a684ed63f61d1bba80f46d9f18046e4a /Libraries/LibWeb/CSS | |
parent | e1e9fb82904a85bb463ec874a51b2b1216752f71 (diff) | |
download | serenity-0d5be35c1f39c258af06a053a4a44fc91e868a88.zip |
LibWeb: Don't render list item markers for "list-style-type: none"
Diffstat (limited to 'Libraries/LibWeb/CSS')
-rw-r--r-- | Libraries/LibWeb/CSS/StyleResolver.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Libraries/LibWeb/CSS/StyleResolver.cpp b/Libraries/LibWeb/CSS/StyleResolver.cpp index 32cd0ef49d..4ad6d818af 100644 --- a/Libraries/LibWeb/CSS/StyleResolver.cpp +++ b/Libraries/LibWeb/CSS/StyleResolver.cpp @@ -359,6 +359,15 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope return; } + if (property_id == CSS::PropertyID::ListStyle) { + auto parts = split_on_whitespace(value.to_string()); + if (!parts.is_empty()) { + auto value = parse_css_value(parts[0]); + style.set_property(CSS::PropertyID::ListStyleType, value); + } + return; + } + style.set_property(property_id, value); } |