mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 21:55:00 +00:00

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.
15 lines
348 B
HTML
15 lines
348 B
HTML
<style>
|
|
* {
|
|
margin: 0;
|
|
}
|
|
body {
|
|
background-color: white;
|
|
}
|
|
</style>
|
|
<!-- To rebase:
|
|
1. Open css-backgrounds.html in Ladybird
|
|
2. Resize the window just above the width of the largest element
|
|
3. Right click > "Take Full Screenshot"
|
|
4. Update the image below:
|
|
-->
|
|
<img src="./images/css-transform-box-ref.png">
|