Wrap SVG images in <img> tags not <object>.
[docutils.git] / test / functional / input / data / svg_images.txt
blob856dd1ff2fad4b8198ac5b539b11ced2b24ff7c4
1 SVG Images
2 ----------
4 .. image:: ../../../docs/user/rst/images/biohazard.svg
5    :width: 48 px
6    :height: 48 px
8 Scalable vector graphics (SVG) images are not supported by all backends.
9 Rendering depends partially on the backend, especially if the size is
10 not explicitely given.
12 .. image:: ../../../docs/user/rst/images/title-scaling.svg
13    :width: 50%
14    :align: left
16 A scaling image occupying 50% of the line width (scales with the
17 browser window).
19 Whether an SVG image is scaled or clipped/padded cannot be set in the
20 containing HTML. It depends on the viewport declaration inside its
21 root <svg> element.
23 .. |inline-svg| image:: ../../../docs/user/rst/images/biohazard-scaling.svg
24    :height: 0.8 em
26 An inline SVG image |inline-svg| scaled to a height of 0.8 em.
28 .. image:: ../../../docs/user/rst/images/title-scaling.svg
29    :width: 50 %
30    :height: 1.2 em
31    :align: right
32    
33 A scaling image occupying 50% of the line width and 1.2 em high,
34 right aligned (this SVG image keeps the aspect ratio):
36 .. image:: ../../../docs/user/rst/images/biohazard-scaling.svg
37    :height: 1 em
38    :align: left
40 A scaling image 1 em high, left aligned.
42 A scaling image 5 mm x 5 mm, centered, with hyperlink reference:
44 .. image:: ../../../docs/user/rst/images/biohazard-scaling.svg
45    :target: Directives_
46    :width: 5 mm
47    :height: 5 mm
48    :align: center
50 .. image:: ../../../docs/user/rst/images/biohazard.svg
51    :width: 4 cm
52    :height: 2 em
53    :align: left
55 A fixed-size image in a  4 cm x 2 em box.
57 .. image:: ../../../docs/user/rst/images/title.svg
58    :width: 50%
59    :height: 15 px
60    :align: left
62 A fixed-size image in a box 50% the line width and 15 pixle high.
64 .. figure:: ../../../docs/user/rst/images/title.svg
65    :alt: reStructuredText, the markup syntax
66    :width:  290 px
67    :height:  28 px
69    SVG image in a figure.
71 .. image:: ../../../docs/user/rst/images/biohazard-bitmap.svg
72    :width: 3em
73    :align: right
75 An SVG image with embedded bitmap. Should be 3 em wide, right aligned.