[webkit-dev] Proposal: Add support for focus rings in Canvas 2d

Timothy Hatcher timothy at apple.com
Mon Oct 14 13:31:29 PDT 2013


On Oct 14, 2013, at 12:43 PM, Rik Cabanier <cabanier at gmail.com> wrote:

> Also, how would your suggestion tell the UA about what areas are associated with the elements? What happens if an element is no longer focused? The ring is drawn into the canvas bitmap so those pixels have to be regenerated.


Focus rings are usually larger than the control they surround. How is the developer suppose to know the pixel padding needed for each platform's focus ring? Guess and hope for the best?

Would drawing the system focus ring taint the canvas pixels? (Drawing form controls into canvas via SVG images and <foreignObject> has been considered taint worthy because it could leak the user's UI theme.)

— Timothy Hatcher

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20131014/adcd48ee/attachment.html>


More information about the webkit-dev mailing list