- From: Niklas Hagelroth <niklas.hagelroth@ikivo.com>
- Date: Fri, 24 Oct 2008 09:50:47 +0200
- To: "SVG Working Group WG" <public-svg-wg@w3.org>
- Message-ID: <234EB4699C751A4A95DF4FD8D041BBFD01069058@SESTHSRV10.zoomon.local>
Hi WG, One of the subtests in shapes-rect-01-t.svg test rectangles with a specified 'rx' and no 'ry', the 'rx' value is greater than half the width of the rectangle: <rect xml:id="Simple-round-rect-filled" fill="red" x="350" y="46" width="50" height="80" rx="30" /> During the test fest in Ottawa it was said that this test should result in the effective values rx=25 and ry=25. However, this is not clear in the specification and most implementations do not do this. Our implementation will result in the values rx=25 and ry=30 which I believe is as correct as rx=25, ry=25. How you render this depends on how you interpret the spec section below. Option 1 (in specification order): ry=rx; rx= (rx>(width/2)) ? (width/2) : rx; ry= (ry>(height/2)) ? (height/2) : ry; Result: rx=25, ry=30 Option 2: rx= (rx>(width/2)) ? (width/2) : rx; ry=rx; ry= (ry>(height/2)) ? (height/2) : ry; Result: rx=25, ry=25 9.1 [[ If a properly specified value is provided for 'rx' but not for 'ry', then the user agent must process the 'rect' element with the effective value for 'ry' as equal to 'rx'. If a properly specified value is provided for 'ry' but not for 'rx', then the user agent must process the 'rect' element with the effective value for 'rx' as equal to 'ry'. If neither 'rx' nor 'ry' has a properly specified value, then the user agent must process the 'rect' element as if no rounding had been specified, resulting in square corners. If 'rx' is greater than half of the width of the rectangle, then the user agent must process the 'rect' element with the effective value for 'rx' as half of the width of the rectangle. If 'ry' is greater than half of the height of the rectangle, then the user agent must process the 'rect' element with the effective value for 'ry' as half of the height of the rectangle. ]] I think that the specification should be updated to state when the clamping and assignment should occur. Cheers, Niklas Niklas Hagelroth Team Manager ______________________________________________________________ IKIVO AB Östermalmsgatan 87 A SE-114 59 Stockholm Sweden Mobile: +46 70 453 49 22 Email: niklas.hagelroth@ikivo.com Web: http://www.ikivo.com <http://www.ikivo.com/> The information transmitted in this email and any attachment(s) is intended solely for the addressee(s) and may contain confidential, proprietary or privileged material. Any review, retransmission, dissemination, reproduction, disclosure, reliance upon or any other use of this information by persons or entities other than the intended recipient(s) is strictly prohibited. If you received this email in error, please notify the sender and delete all related material forthwith.
Attachments
- image/gif attachment: image001.gif
Received on Friday, 24 October 2008 07:51:54 UTC