17 lines
492 B
HTML
17 lines
492 B
HTML
<!doctype html>
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="100">
|
|
<desc>Test that the outline is painted, and that :active stylerules apply correctly on the 'tspan' element.</desc>
|
|
<style>
|
|
* { margin: 0; padding: 0; }
|
|
*:focus { fill: green }
|
|
text { font: 32px Ahem; }
|
|
</style>
|
|
|
|
<text y="40"><tspan tabindex="2">Test didn't run</tspan></text>
|
|
<script>
|
|
var t = document.querySelector("tspan");
|
|
t.focus();
|
|
t.textContent = document.activeElement;
|
|
</script>
|
|
</svg>
|