File:SVG 1.1 W3C test text-ws-02-t NoLineBreak.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 480 × 360 pixels, file size: 2 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description

Show the SVG test for Mediawiki (libRSVG), should like look as the PNG version in the source link. http://www.w3.org/TR/SVG11/text.html#WhiteSpace

       <!-- RESOLUTION 2011-03-04 deprecate xml;space in favour of CSS whitespace property, for SVG2 -->

Test for viewer correct handling of whitespace and the 'xml:space' attribute. There are two sub-tests, for value "preserve". In each test, the content of the 'text' element is written on multiple lines. The first test of each pair has indented text with leading space characters, tabs, etc. The second has no indentation, but a line break before the content and after it. There are no space (or other whitespace) characters at the ends of the lines.

The two test cases are self-descriptive. From the top; first, "preserve" applied to essentially the same content as first; second, "preserve" applied to essentially the same content as second.

In each test, the test string is in blue and the reference image is in black. The rendered picture should approximately match the reference image, however there is some question in the reference image concerning the exact amount of space in the long-space areas. The third test uses the nbsp unicode character to force the reference white spaces display, which provides an accurate match if the font in use has the same metrics for that character and the default white space. Also, variations are possible in the text fonts and layout (per CSS2 rules).

The test also uses the 'rect' element, as well as basic fill (solid primary colors), stroke (black 1-pixel lines), font-family and font-size properties.

Date
Source SVG 1.1 W3C test text-ws-02-t.svg
Author W3C, Lofton Henderson
Permission
(Reusing this file)

Permission to use, copy, and distribute the contents of this document, or the W3C document from which this statement is linked, in any medium for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the document, or portions thereof, that you use:

  1. A link or URL to the original W3C document.
  2. The pre-existing copyright notice of the original author, or if it doesn't exist, a notice of the form: "Copyright © [$date-of-document] World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatiqu, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/%22 (Hypertext is preferred, but a textual representation is permitted.)
  3. If it exists, the STATUS of the W3C document.
http://www.w3.org/Consortium/Legal/2002/ipr-notice-20021231
SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with a text editor.

Licensing[edit]

w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 2.5 Generic license.
Attribution: W3C
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current23:30, 25 December 2017Thumbnail for version as of 23:30, 25 December 2017480 × 360 (2 KB)JoKalliauer (talk | contribs)removed viewBox
23:25, 25 December 2017Thumbnail for version as of 23:25, 25 December 2017512 × 384 (2 KB)JoKalliauer (talk | contribs)Liberation Sans
22:52, 25 December 2017Thumbnail for version as of 22:52, 25 December 2017512 × 384 (2 KB)JoKalliauer (talk | contribs)

Metadata