[webkit-dev] [svg] rect with invalid stroke value
cam at mcc.id.au
Mon Jun 14 17:40:32 PDT 2010
> Fill defaults to black, stroke to none. Whether invalid values are
> ignored or treated as black I don't remember.
Neither! SVG 1.1 defines a “render up until the error” behaviour (which
most implementations don’t follow):
This is not going to change in time for SVG 1.1 Second Edition.
> In general the SVG spec is useless in this regard.
I recommend following what SVG Tiny 1.2 says on this, which is that
attributes with unsupported values are ignored:
This is the behaviour that most implementations use, and is what will be
kept for SVG 2.0.
Cameron McCormack ≝ http://mcc.id.au/
More information about the webkit-dev