mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 23:26:36 +00:00
LibWeb: Implement the flex order CSS property
Adds support for the flex order property and a test page for it on the browser welcome page.
This commit is contained in:
parent
2377344a89
commit
58398b1e12
Notes:
sideshowbarker
2024-07-17 16:19:04 +09:00
Author: https://github.com/Enverbalalic
Commit: 58398b1e12
Pull-request: https://github.com/SerenityOS/serenity/pull/13385
Reviewed-by: https://github.com/AtkinsSJ
9 changed files with 142 additions and 1 deletions
|
@ -263,6 +263,14 @@ float StyleProperties::flex_shrink() const
|
|||
return value.value()->to_number();
|
||||
}
|
||||
|
||||
int StyleProperties::order() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::Order);
|
||||
if (!value.has_value() || !value.value()->has_integer())
|
||||
return 0;
|
||||
return value.value()->to_integer();
|
||||
}
|
||||
|
||||
Optional<CSS::ImageRendering> StyleProperties::image_rendering() const
|
||||
{
|
||||
auto value = property(CSS::PropertyID::ImageRendering);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue