Kozea / Kozea/CairoSVG

Cairo SVG can't handle masks properly

Open
#214 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
951
Forks
166
PR merge metrics
No merged PRs in 30d

Description

The following SVG stopped working after PR #192. Reverting this chage fixed the issue:
https://github.com/Kozea/CairoSVG/pull/192/files#diff-df66f79606a5ca006b57c7ad5b5fc43b

Example:
[floor.svg.txt](https://github.com/Kozea/CairoSVG/files/2551508/floor.svg.txt)

48018749-a4257280-e0ff-11e8-8147-2b84e90d4373
48018750-a4257280-e0ff-11e8-9674-13097c41153c

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the mask failure with the attached floor.svg.txt example and compare the output with the behavior before and after PR #192. Trace the SVG mask handling changed by that pull request, then add regression coverage for the example and verify the rendered output no longer differs incorrectly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.