Bug 112630

Summary: [SVG] Invalid attribute values should be ignored
Product: WebKit Reporter: Florin Malita <fmalita>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: bfulgham, krit, pdr, schenney, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 112623    
Attachments:
Description Flags
Shows a 100% width green band in FF and old Opera. none

Florin Malita
Reported 2013-03-18 14:54:23 PDT
Created attachment 193661 [details] Shows a 100% width green band in FF and old Opera. Instead, we end up with zero-initialized attributes. This is a problem for attributes which should default to non-zero values or whose sheer presence affects the result. For example, width="invalid" should be equivalent to width="100%" (the spec'ed default) or with no width attribute at all. See attached example. To address this, it seems we'd have to also track whether or not a particular attribute was successfully parsed.
Attachments
Shows a 100% width green band in FF and old Opera. (170 bytes, image/svg+xml)
2013-03-18 14:54 PDT, Florin Malita
no flags
Brent Fulgham
Comment 1 2022-07-15 16:09:58 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
Note You need to log in before you can comment on or make changes to this bug.