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

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

Original file (SVG file, nominally 512 × 384 pixels, file size: 3 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 2nd Edition Test Suite using svgweb:

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
Other versions
Sorry, this SVG file is solely a source for re-utilization, editing or printing purposes. Please do not use this graphic within Wikipedia articles! MediaWiki isn't able to render this image correctly. Some details may be missing or look wrong. When you include the image in a Wikipedia or any other Wikimedia project site's page, you may want to use the other file, until the support increases.

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

Deutsch  English  español  italiano  日本語  한국어  македонски  português do Brasil  русский  sicilianu  slovenščina  简体中文  繁體中文  +/−

{{{svgImageLabel}}}

SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with Inkscape-default

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
current11:02, 3 June 2014Thumbnail for version as of 11:02, 3 June 2014512 × 384 (3 KB)Perhelion (talk | contribs){{Information |Description= Show the SVG test for the Mediawiki libRSVG. http://www.w3.org/TR/SVG11/text.html#WhiteSpace <nowiki><!-- RESOLUTION 2011-03-04 deprecate xml;space in favour of CSS whitespace property, for SVG2 --></nowiki>...

The following 2 pages use this file:

Metadata