Bug 46578 - SVG implement dynamic pseudo-class focus
: SVG implement dynamic pseudo-class focus
Status: RESOLVED INVALID
Product: WebKit
Classification: Unclassified
Component: SVG
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To: Nobody
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-26 10:25 PDT by jay
Modified: 2014-05-12 07:07 PDT (History)
3 users (show)

See Also:


Attachments
testcase (413 bytes, image/svg+xml)
2010-09-26 10:25 PDT, jay
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jay 2010-09-26 10:25:11 PDT
Created attachment 68851 [details]
testcase

dynamic pseudo-class implemented, but not focus.

why?


SVG 1.1
The ‘pointer-events’ property specifies under what circumstances a given graphics element can be the target element for a pointer event. It affects the circumstances under which the following are processed:
user interface events such as mouse clicks
dynamic pseudo-classes (i.e., :hover, :active and :focus; [CSS2], section 5.11)
http://www.w3.org/TR/SVG11/interact.html#PointerEventsProperty

5.11.3 The dynamic pseudo-classes: :hover, :active, and :focus
http://www.w3.org/TR/2008/REC-CSS2-20080411/selector.html#q15


apologies if this is a dupe
Comment 1 Dirk Schulze 2014-05-12 07:07:30 PDT
Elements are not focusable by default. Buttons are, text areas are but not SVG elements. In a nightly you can give it a focus by using tabindex="1". You should be able to give it a focus with JS too.