"inherit" doesn’t work for "overflow"
- Dominant language
- Python
- Stars
- 951
- Forks
- 166
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to render [this file](https://github.com/Kozea/CairoSVG/files/5500296/0183.svg.zip) with cairosvg, but unfortunately the image it produces is unusable, because almost all objects are cropped in the upper half like this. Any ideas why this is happening?

My code is simply
```python
from cairosvg import svg2png
with open(input_svg, mode="r") as input_file:
svg_stream = input_file.read()
output_png = os.path.join(output_directory, os.path.basename(input_svg).replace("svg", "png"))
svg2png(bytestring=svg_stream, dpi=900, background_color="white", scale=30.0, write_to=output_png, output_width=2480, output_height=3508)
```
Interestingly, the same happens when converting svg to pdf:
[0183.pdf](https://github.com/Kozea/CairoSVG/files/5500302/0183.pdf)
For reference, this is how it should look like:

Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the rendering with the attached 0183.svg file and the Python svg2png snippet, then compare the PNG and PDF output with the expected image. Trace how inherited overflow is handled during SVG rendering; done means the objects are no longer cropped and both output formats match the reference.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100