summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-02-07 17:29:36 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-07 21:55:12 +0100
commit6df0b8e889fee6bc7aaf05eb885329c360e13ab6 (patch)
tree099873e9ebb5e262ce0640afb374445e3522f97c
parent48c6cf92e310005161e455e6e689e3610375f01d (diff)
downloadserenity-6df0b8e889fee6bc7aaf05eb885329c360e13ab6.zip
LibWeb: Parse `display: inline-flex`
This was already handled in the CSS machinery, we just never parsed it.
-rw-r--r--Userland/Libraries/LibWeb/CSS/Identifiers.json1
-rw-r--r--Userland/Libraries/LibWeb/CSS/Properties.json1
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleProperties.cpp2
3 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Identifiers.json b/Userland/Libraries/LibWeb/CSS/Identifiers.json
index 391f503623..65f1753af4 100644
--- a/Userland/Libraries/LibWeb/CSS/Identifiers.json
+++ b/Userland/Libraries/LibWeb/CSS/Identifiers.json
@@ -116,6 +116,7 @@
"hidden",
"inline",
"inline-block",
+ "inline-flex",
"inline-table",
"inset",
"inside",
diff --git a/Userland/Libraries/LibWeb/CSS/Properties.json b/Userland/Libraries/LibWeb/CSS/Properties.json
index 5a056133fe..9bb799a67e 100644
--- a/Userland/Libraries/LibWeb/CSS/Properties.json
+++ b/Userland/Libraries/LibWeb/CSS/Properties.json
@@ -571,6 +571,7 @@
"flex",
"inline",
"inline-block",
+ "inline-flex",
"inline-table",
"list-item",
"none",
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
index 5a998edce0..9575ddf138 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
@@ -631,6 +631,8 @@ CSS::Display StyleProperties::display() const
return CSS::Display { CSS::Display::Internal::TableFooterGroup };
case CSS::ValueID::Flex:
return CSS::Display::from_short(CSS::Display::Short::Flex);
+ case CSS::ValueID::InlineFlex:
+ return CSS::Display::from_short(CSS::Display::Short::InlineFlex);
default:
return CSS::Display::from_short(CSS::Display::Short::Block);
}