summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
diff options
context:
space:
mode:
authormartinfalisse <martinmotteditfalisse@gmail.com>2023-01-02 23:01:29 +0100
committerAndreas Kling <kling@serenityos.org>2023-01-03 20:02:47 +0100
commit64c353f11cadd9d18e9d89480a4aed1fd644441d (patch)
tree3d4606c147aa1400915bc7ef53741b841d00913a /Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
parent25f612f32be3154300c640ecf3e838de748b4cdf (diff)
downloadserenity-64c353f11cadd9d18e9d89480a4aed1fd644441d.zip
LibWeb: Parse `border-collapse` property for HTML table
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleProperties.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleProperties.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
index 3b29a61f26..49336f53d7 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
@@ -737,4 +737,10 @@ CSS::GridTrackPlacement StyleProperties::grid_row_start() const
return value->as_grid_track_placement().grid_track_placement();
}
+Optional<CSS::BorderCollapse> StyleProperties::border_collapse() const
+{
+ auto value = property(CSS::PropertyID::BorderCollapse);
+ return value_id_to_border_collapse(value->to_identifier());
+}
+
}