1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-15 00:20:59 +00:00
serenity/Tests/LibWeb/Ref/reference/images
Zac Brannelly 9165faca5e LibWeb: Support CSS property background-clip: text
From https://drafts.csswg.org/css-backgrounds-4/#background-clip
"The background is painted within (clipped to) the intersection of the
border box and the geometry of the text in the element and its in-flow
and floated descendants"

This change implements it in the following way:
1. Traverse the descendants of the element, collecting the Gfx::Path of
   glyphs into a vector.
2. The vector of collected paths is saved in the background painting
   command.
3. The painting commands executor uses the list of glyphs to paint a
   mask for background clipping.

Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
2024-03-03 15:33:12 +01:00
..
border-radius-ref.png LibGfx: Increase bezier splitting tolerance to 0.5 2024-01-08 09:26:43 +01:00
canvas-fillstyle-rgb.png LibGfx: Clip edges above or below the visible area in the rasterizer 2023-12-24 13:25:40 +01:00
canvas-path-rect-ref.png LibGfx: Increase bezier splitting tolerance to 0.5 2024-01-08 09:26:43 +01:00
canvas-text-ref.png LibWeb: Use paths for text in CRC2D (if possible) 2024-02-12 13:38:10 +01:00
css-background-clip-text.png LibWeb: Support CSS property background-clip: text 2024-03-03 15:33:12 +01:00
css-background-position-ref.png LibWeb: Add ref-tests for 3-value background positions with center 2024-01-10 23:27:28 +01:00
css-background-repeat-ref.png LibWeb+WebContent: Move paint recording init into Navigable 2024-01-15 14:33:56 +01:00
css-backgrounds-ref.png LibGfx: Increase bezier splitting tolerance to 0.5 2024-01-08 09:26:43 +01:00
css-gradients-ref.png LibWeb: Forbid using CSS::Length as reference value in resolved() 2024-01-07 09:03:57 +01:00
css-transform-box-ref.png LibWeb: Make use of transform-box when calculating transforms 2024-01-27 07:46:37 +01:00
inline-node-ref.png LibGfx: Increase bezier splitting tolerance to 0.5 2024-01-08 09:26:43 +01:00
input-placeholder-ref.png LibWeb: Bring CSS line-height closer to other engines 2024-01-12 15:04:06 +01:00
meter-ref.png LibWeb: Bring CSS line-height closer to other engines 2024-01-12 15:04:06 +01:00
nested-boxes-with-hidden-overflow-and-border-radius-ref.png LibWeb: Account for all clipped border radii in containing block chain 2024-02-11 08:12:31 +01:00
object-fit-position.png LibWeb: Bring CSS line-height closer to other engines 2024-01-12 15:04:06 +01:00
outer-box-shadow-ref.png LibGfx: Increase bezier splitting tolerance to 0.5 2024-01-08 09:26:43 +01:00
svg-axis-aligned-lines-ref.png LibWeb: Fix drawing axis-aligned lines 2024-01-09 00:03:09 +01:00
svg-background-no-natural-size-ref.png Revert "LibGfx: Slightly simplify Color::blend()" 2024-01-22 07:12:25 +01:00
svg-gradient-spreadMethod-ref.png LibGfx: Clip edges above or below the visible area in the rasterizer 2023-12-24 13:25:40 +01:00
svg-radialGradient-ref.png LibGfx: Clip edges above or below the visible area in the rasterizer 2023-12-24 13:25:40 +01:00
svg-text-effects-ref.png LibWeb: Support transforms, stroking, gradients, etc for SVG <text> 2023-11-05 02:46:46 +01:00
svg-textPath-ref.png LibGfx: Decrease flatness a little in Path::stroke_to_fill() 2024-01-21 19:23:31 +01:00
text-decorations.png LibWeb: Use PaintableFragment::baseline() in paint_text_decoration() 2024-01-26 07:36:40 +01:00
text-shadow-ref.png LibWeb: Bring CSS line-height closer to other engines 2024-01-12 15:04:06 +01:00