[Webkit-unassigned] [Bug 34032] New: -webkit-border-radius does not work on <img> tag in Mobile Safari
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 22 19:40:36 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34032
Summary: -webkit-border-radius does not work on <img> tag in
Mobile Safari
Product: WebKit
Version: 523.x (Safari 3)
Platform: Other
OS/Version: Other
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Images
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: supercollideher at gmail.com
The sample HTML below does work in the desktop version of Mac Safari but not
the iphone 3.0 version (and, presumably, previous versions). Desired behavior
is to have the corners of the image rounded off. If you add colored padding of
~10px to the style definition, you can see that the in mobile safari, padding
gets rounded off, but then the image with unrounded corners gets drawn over the
rounded padding.
If webkit on the iphone and the mac desktop call the same platform drawing
routine, I guess that indicates that the iphone implementation of the function
that clips the corners works differently from the desktop version (I poked
around a little bit in the code -- seems that CGContextClipToRect is what is
getting called on the host platform. Could be mistaken, though. First time
looking at webkit code)
<html>
<head>
<style type="text/css">
img { -webkit-border-radius: 100px; }
</style>
</head>
<body>
<img
src="http://www.fis.ncsu.edu/trademark/images/ncsu/new_cd/NCS_MonoS_2C_2.gif">
</body>
</html>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list