Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/linking/reftests/svgview-timesegment.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>SVG fragment identifier: svgView() may be followed by a time segment</title>
<link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/linking.html#SVGFragmentIdentifiersDefinitions">
<link rel="match" href="svgview-img-element-ref.html">
<meta name="assert" content="The grammar permits an SVGViewSpec followed by an ampersand and a time segment, so svgView(viewBox(...))&t=0 must apply the view. The document has no animation, so the time segment changes nothing visible and only the view is observable.">
<!--
support/squares.svg is 200x200 with four solid quadrants:
#d46847 terracotta | #2a9d8f teal
#264653 indigo | #e9c46a sand
The reference is the plain 100x100 teal block also used by svgview-img-element.html,
because the view selected here is the same one; only the trailing &t=0 differs.
A whole-sprite rendering would mean the combined fragment was rejected.
-->
<style>
body { margin: 0; }
img { display: block; border: none; }
</style>
<img src="support/squares.svg#svgView(viewBox(100,0,100,100))&t=0" width="100" height="100" alt="">