File:Incorrect path error handling.svg

Original file(SVG file, nominally 400 × 100 pixels, file size: 848 bytes)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: This SVG is supposed to show the word "correct", but is rendered as "incorrect" instead. It contains path data, in which an L-command is missing a y-parameter. Instead of terminating the path rendering as specified in the Path Element Implementation Notes, librsvg defaults missing parameters to zero and continues rendering. The same behavior is observed with other path commands like l, c, C, etc..
Date
Source Own work
Author TilmannR
SVG development
InfoField
 
The source code of this SVG is invalid due to an error.
 
This vector image was created with a text editor.
 
 This file uses embedded text that can be easily translated using a text editor.
SVG
InfoField
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="100">
	<rect width="100%" height="100%" fill="#ccc"/>
	<g font-family="Liberation Sans,sans-serif" font-size="72">
		<text x="100" y="75" text-anchor="start">correct</text>
		<text x="100" y="75" text-anchor="end">in</text>
	</g>
	<path fill="#ccc" d="M0,0  V100 H100 V0 H0 L100 V100 H0 Z"/>
</svg>

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

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

Date/TimeThumbnailDimensionsUserComment
current01:11, 30 January 2019Thumbnail for version as of 01:11, 30 January 2019400 × 100 (848 bytes)TilmannR (talk | contribs)Changed "valid" and "invalid" to "correct" and "incorrect" to avoid confusing renderer correctness with SVG validity. // Editing SVG source code using User:Rillke/SVGedit.js; upload handled by User:Rillke/MwJSBot.js
00:57, 30 January 2019Thumbnail for version as of 00:57, 30 January 2019300 × 100 (862 bytes)TilmannR (talk | contribs){{Information |description ={{en|1=This SVG is supposed to show the word "valid", but is rendered as "invalid" instead. It contains path data, in which an L-command is missing a y-parameter. Instead of terminating the path rendering as specified in the [https://www.w3.org/TR/SVG11/implnote.html#PathElementImplementationNotes Path Element Implementation Notes], librsvg defaults missing parameters to zero and continues rendering. The same behavior is observed with other path commands like l,...

There are no pages that use this file.

Metadata