mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Implement the CSS outline-offset property
This allows you to push the outline a certain distance away from the border (or inside it, if the offset is negative).
This commit is contained in:
committed by
Andreas Kling
parent
fe7e797483
commit
73fa58da34
Notes:
sideshowbarker
2024-07-17 14:36:19 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/73fa58da34 Pull-request: https://github.com/SerenityOS/serenity/pull/20331
@@ -738,6 +738,8 @@ ErrorOr<RefPtr<StyleValue const>> ResolvedCSSStyleDeclaration::style_value_for_p
|
||||
}
|
||||
case PropertyID::OutlineColor:
|
||||
return ColorStyleValue::create(layout_node.computed_values().outline_color());
|
||||
case PropertyID::OutlineOffset:
|
||||
return LengthStyleValue::create(layout_node.computed_values().outline_offset());
|
||||
case PropertyID::OutlineStyle:
|
||||
return IdentifierStyleValue::create(to_value_id(layout_node.computed_values().outline_style()));
|
||||
case PropertyID::OutlineWidth:
|
||||
|
||||
Reference in New Issue
Block a user