mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
20 lines
1.0 KiB
XML
20 lines
1.0 KiB
XML
Check whether plugin works with two style elements that contain styles that also uses media queries.
|
|
|
|
===
|
|
|
|
<svg id="test" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
<style media="print">.st0{ fill:red; padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; }</style>
|
|
<style>.test { background: red; }</style>
|
|
<rect width="100" height="100" class="st0" style="stroke-width:3;margin-top:1em;margin-right:1em;margin-bottom:1em;margin-left:1em"/>
|
|
<style media="only screen and (min-width: 600px)">.wrapper { color: blue; }</style>
|
|
</svg>
|
|
|
|
@@@
|
|
|
|
<svg id="test" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
<style>
|
|
@media print{.st0{ fill:red; padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; }}.test { background: red; }@media only screen and (min-width: 600px){.wrapper { color: blue; }}
|
|
</style>
|
|
<rect width="100" height="100" class="st0" style="stroke-width:3;margin-top:1em;margin-right:1em;margin-bottom:1em;margin-left:1em"/>
|
|
</svg>
|