mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibWeb: Make use of transform-box when calculating transforms
We don't currently calculate the fill- or stroke-boxes of SVG elements, so for now we use the content- and border-boxes respectively, as those are the closest equivalents. The test will need updating when we do support them. Also, the test is a screenshot because of rendering differences when applying transforms: a 20px box does not get painted the same as a 10px box scaled up 2x. Otherwise that would be the more ideal form of test.
This commit is contained in:
parent
391cfdc085
commit
e025bcc4f9
4 changed files with 117 additions and 2 deletions
BIN
Tests/LibWeb/Ref/reference/images/css-transform-box-ref.png
Normal file
BIN
Tests/LibWeb/Ref/reference/images/css-transform-box-ref.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue