mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 09:17:36 +00:00

Rather than modify the transform of the parent (which could change independently), this adds a new override element_transform() where element specific tranfroms can be applied. This will always stay in sync with the attributes. A ref test comparing a .svg and .html version of the same file is added as due to differences in attribute parsing order, the .svg version was previously drawn incorrectly. Fixes #20859
13 lines
231 B
HTML
13 lines
231 B
HTML
<style>
|
|
* {
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
<svg xmlns="http://www.w3.org/2000/svg">
|
|
<defs>
|
|
<g id="10">
|
|
<rect width="50" height="50" fill="#555555"></rect>
|
|
</g>
|
|
</defs>
|
|
<use href="#10" x="25" y="25"></use>
|
|
</svg>
|