NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 462 - Getting error for valid preserveAspectRatio value
Getting error for valid preserveAspectRatio value
Classification: Unclassified
Component: SVG 1.1 schema
All All
: P2 normal
Assigned To: Henri Sivonen
Depends on:
  Show dependency treegraph
Reported: 2009-03-29 20:48 CEST by Shelley Powers
Modified: 2009-04-09 15:55 CEST (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Shelley Powers 2009-03-29 20:48:25 CEST
I set preserveAspectRatio="none" on inline SVG in the URL listed. The validator is returning an error:

   1.  Error: Bad value none for attribute preserveAspectRatio on SVG element svg.From line 634, column 1; to line 636, column 24

      ompass" >↩<svg version="1.1" id="Layer_1" xmlns="" xmlns:xlink="" x="0px" y="0px"↩ viewBox="0 0 309.136 312.484" preserveAspectRatio="none" style="enable-background:new 0 0 309.136 312.484;"↩ xml:space="preserve">↩<path

A value of "none" is valid for this attribute
Comment 1 Nicolas Raoul 2009-04-06 12:40:58 CEST
Just in case it can help, I just wrote a small test case in XHTML 5:
Nicolas Raoul
Comment 2 Shelley Powers 2009-04-06 15:40:02 CEST
Sorry, had changed SVG image in page and removed preserveAspectRatio. Added attribute back in until you have a chance to fix. 
Comment 3 Henri Sivonen 2009-04-09 15:55:31 CEST
A bogus regexp lacked parentheses. Good catch. Thanks.

I'll push the fix to deployment shortly.