Base: Modify SVG test page to include inherited attributes
Some SVG attributes can be inherited, similarly to CSS properties. This change moves some attributes from a `<path>` to a parent `<g>` to test this works.
This commit is contained in:
parent
2664b8ae7f
commit
f4ceea2a0e
Notes:
sideshowbarker
2024-07-17 20:18:32 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/f4ceea2a0ec Pull-request: https://github.com/SerenityOS/serenity/pull/12112
1 changed files with 7 additions and 6 deletions
|
@ -33,12 +33,13 @@
|
|||
a 10,40 20 0,1 30,10 l 30,10"
|
||||
fill="orange" stroke="red" stroke-width="5"></path>
|
||||
|
||||
<path d="M 300,300 l 30,10
|
||||
a 10,10 20 0,1 30,10 l 30,10
|
||||
a 10,20 20 0,1 30,10 l 30,10
|
||||
a 10,30 20 0,1 30,10 l 30,10
|
||||
a 10,40 20 0,1 30,10 l 30,10 z"
|
||||
fill="orange" stroke="red" stroke-width="5"></path>
|
||||
<g fill="orange" stroke="red" stroke-width="5">
|
||||
<path d="M 300,300 l 30,10
|
||||
a 10,10 20 0,1 30,10 l 30,10
|
||||
a 10,20 20 0,1 30,10 l 30,10
|
||||
a 10,30 20 0,1 30,10 l 30,10
|
||||
a 10,40 20 0,1 30,10 l 30,10 z"></path>
|
||||
</g>
|
||||
</svg>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Reference in a new issue