mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Use reverse direction on flex containers with rtl
direction
If a flex container has `direction: rtl` set, reverse the row direction.
This commit is contained in:
parent
c6975a1680
commit
82989554ab
Notes:
github-actions[bot]
2024-08-13 14:20:49 +00:00
Author: https://github.com/BenJilks
Commit: 82989554ab
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1060
Reviewed-by: https://github.com/AtkinsSJ ✅
10 changed files with 92 additions and 4 deletions
|
@ -1085,6 +1085,12 @@ Optional<CSS::TableLayout> StyleProperties::table_layout() const
|
|||
return value_id_to_table_layout(value->to_identifier());
|
||||
}
|
||||
|
||||
Optional<CSS::Direction> StyleProperties::direction() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::Direction);
|
||||
return value_id_to_direction(value->to_identifier());
|
||||
}
|
||||
|
||||
Optional<CSS::MaskType> StyleProperties::mask_type() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::MaskType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue