[Webkit-unassigned] [Bug 63899] The content of replaced element 'img' is trimmed to the content edge curve of a rounded corner.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 19 02:05:44 PDT 2011


--- Comment #22 from Chiculita Alexandru <achicu at adobe.com>  2011-07-19 02:05:43 PST ---
(In reply to comment #21)
> Actually I think this patch will do the wrong thing if the border has transparency.

The correct behavior seems to be changing the order the decorations are painted:

1. Paint the background using the outer border line clipping
2. Paint the replaced content using the outer border line clipping (minus one device pixel if the border is opaque, so that we avoid bleeding outside the edge)
3. Paint the border

The spec says the rule also applies for blocks and tables that have overflow != 'visible' . So step 2 should also apply for that.

Is this right? If yes, it requires splitting the paintBoxDecorations method in two: one for backgrund and one for borders. I also need to update all the call-sites to call both methods.

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