[whatwg] SVG extensions to <canvas>

João Eiras joaoe at opera.com
Tue May 5 09:31:13 PDT 2009


> SVG images often don't have an intrinsic size. What's the intrinsic size of
> this image?
> <svg xmlns="http://www.w3.org/2000/svg">
>   <linearGradient id="g" x1="0" y1="0" x2="1" y2="0">
>     <stop stop-color="red" offset="0"/><stop stop-color="lime" offset="1"/>
>   </linearGradient>
>   <rect x="0%" y="0%" width="100%" height="100%" fill="url(#g)"/>
> </svg>
>
> Rob

This is the same as <table><tr><td><textarea></textarea></td></tr></table>
where the Ua shrink wraps the table but the textarea inherit the parents width. This would cause a 0 width table, but currentl user agents rely on other attributes to get the intrinsic dimensions, like rows and cols for the table. In the SVG case, the UA could use default dimensions, like 300 per 300

-- 

João Eiras
Core Developer, Opera Software ASA, http://www.opera.com/


More information about the whatwg mailing list