[Webkit-unassigned] [Bug 50126] Fallback content in canvas element not focusable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 14 09:51:10 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=50126


Dimitri Glazkov (Google) <dglazkov at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dglazkov at chromium.org




--- Comment #39 from Dimitri Glazkov (Google) <dglazkov at chromium.org>  2012-02-14 09:51:08 PST ---
(In reply to comment #38)
> Sorry, maybe my comment was too terse.
> 
> What I meant is that we can get rid of the RenderReplaced and use the shadow DOM to implement replaced elements instead. For example, in the case of the cavas element, we'll attach a special shadow DOM that "implements the canvas" by default. The fallback content is shown iff the shadow DOM isn't attached and the innate DOM is shown.
> 
> HTMLCanvasElement -> ShadowRoot -> some-special-element/renderer, inaccessible from ES5
> |
> v
> fallback contents (accessible from DOM, focus, etc... would just work when shown)
> 
> That way, we don't need to have all sorts of crazy hacks we have in RenderReplaced and friends today.

Formulating RenderReplaced as an effect of shadow DOM is a pretty brilliant idea, Ryosuke.  I am probably not aware of all of the edge cases here, but it seems this just needs to be done.

-- 
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