mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Implement the SVG clip-rule
attribute
This controls the fill rule used when rasterizing `<clipPath>` elements.
This commit is contained in:
parent
8e00fba71d
commit
6c9069fa5d
Notes:
sideshowbarker
2024-07-16 22:34:39 +09:00
Author: https://github.com/MacDue
Commit: 6c9069fa5d
Pull-request: https://github.com/SerenityOS/serenity/pull/24300
Reviewed-by: https://github.com/AtkinsSJ ✅
13 changed files with 74 additions and 8 deletions
|
@ -804,6 +804,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
|
|||
if (auto clip_path = computed_style.property(CSS::PropertyID::ClipPath); clip_path->is_url())
|
||||
computed_values.set_clip_path(clip_path->as_url().url());
|
||||
|
||||
if (auto clip_rule = computed_style.clip_rule(); clip_rule.has_value())
|
||||
computed_values.set_clip_rule(*clip_rule);
|
||||
|
||||
if (auto fill_rule = computed_style.fill_rule(); fill_rule.has_value())
|
||||
computed_values.set_fill_rule(*fill_rule);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue