servo/components/canvas
sagudev 75c13f1422
canvas: Properly bound all image pattern axis by inserting clip (#37668)
Before we only handled no-repeat for rect, this means we rendered
https://sagudev.github.io/briefcase/no-repeat.html incorrectly (like
firefox). Now if one of the axis is bounded (does not repeat) we clip it
and let other axis be unbounded (technically we clip it to end of
canvas).

This is also needed for vello backend.

Testing: Tests in WPT exists and another test is added.

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2025-07-11 06:49:09 +00:00
..
backend.rs canvas: Properly bound all image pattern axis by inserting clip (#37668) 2025-07-11 06:49:09 +00:00
canvas_data.rs canvas: Properly bound all image pattern axis by inserting clip (#37668) 2025-07-11 06:49:09 +00:00
canvas_paint_thread.rs canvas: Use snapshot in canvas backends (#37863) 2025-07-04 20:22:20 +00:00
Cargo.toml pixels: Move Snapshot and related data structures to pixels (#37590) 2025-06-20 14:47:06 +00:00
lib.rs Use backend trait with associated types for 2d canvas backends abstraction (#36783) 2025-05-01 04:16:23 +00:00
raqote_backend.rs canvas: Properly bound all image pattern axis by inserting clip (#37668) 2025-07-11 06:49:09 +00:00