diff options
author | martinfalisse <martinmotteditfalisse@gmail.com> | 2023-01-02 23:01:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-03 20:02:47 +0100 |
commit | 64c353f11cadd9d18e9d89480a4aed1fd644441d (patch) | |
tree | 3d4606c147aa1400915bc7ef53741b841d00913a /Userland/Libraries/LibWeb/CSS/StyleProperties.cpp | |
parent | 25f612f32be3154300c640ecf3e838de748b4cdf (diff) | |
download | serenity-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.cpp | 6 |
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()); +} + } |