feat: include SVG as <object>

This commit is contained in:
Settel 2024-10-11 11:10:14 +02:00
parent e68ffca544
commit 0d75370a9f
2 changed files with 7 additions and 3 deletions

View File

@ -7,11 +7,15 @@
<link rel="stylesheet" type="text/css" href="style.css" /> <link rel="stylesheet" type="text/css" href="style.css" />
</head> </head>
<body> <body>
<header> <main>
<div class="girlande"> <div class="girlande">
<img src="girlande-600x100.svg" width="600" height="100" /> <img src="girlande-600x100.svg" width="600" height="100" />
</div> </div>
<div class="girlande">
<object type="image/svg+xml" data="girlande-600x100.svg"></object>
</div>
<div class="girlande"> <div class="girlande">
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg <svg
@ -333,6 +337,6 @@
</g> </g>
</svg> </svg>
</div> </div>
</header> </main>
</body> </body>
</html> </html>

View File

@ -2,4 +2,4 @@
display: inline-block; display: inline-block;
margin: 3rem; margin: 3rem;
border: 1px solid #000000; border: 1px solid #000000;
} }