WebKit+SVG and FireFox disagree on invalid "transform" handling After my fixes as part of 6061, there is now one case in which WebKit+SVG and FireFox still disagree on transform handling. WebKit+SVG will respect any valid transforms up-to, but not including the first invalid transform instruction in a transform="..." attribute. FireFox will ignore the entire transform attribute if any of the transform instructions are invalid.
Created attachment 5075 [details] Test case Safari+SVG "passes" this test and FireFox "fails". Eventually we should resolve this discrepancy. The w3c does not specify which should be correct, however I may ask them to as part of Tiny 1.2 last call.
Per SVG Tiny 1.2, the entire attribute should be ignored. TESTCASE: http://www.hixie.ch/tests/adhoc/svg/transform/001.xml
Created attachment 11729 [details] First attempt This patch makes us match FF behaviour here. Cheers, Rob.
Created attachment 11753 [details] Better patch I had one big logic error in SVGTextElement.cpp, fixed now. Also added updated results for transform-ignore-after-invalid.svg. Finally some code cleanups. Cheers, Rob.
Comment on attachment 11753 [details] Better patch Looks good. r=me
Landed in r18074.