Re: pointer-events="no-select"

Hi, all-

I'm whole-heartedly behind this notion. Another reason for extending the
pointer-event options that Jim doesn't mention is that when dragging a shape
over a text element, text-selection may capture the focus (I've seen this in
my app and demonstrated it to Chris Lilley and Robin Berjon).

Text is a special case of an SVG primative, in that it is the only one that
requires a child node, that has has unique behavior attached to it
(text-selection), and, arguably, is the only one that natively carries
semantic content apart from its shape. Thus, I don't think it's unreasonable
to extend pointer-events in this way.

If you were to make a more generalized solution, you might also consider
<use> elements and their ilk (referential elements like marker and symbols).
I'm not sure what behaviors one might specify, whether limiting (like
"no-select" for text) or extending (maybe 'pointer-events: reflect-parent'
to group or cascade events, or showing a tooltip like <title> does). Or
something.

Thanks-
-Doug

"Jim Ley"  wrote"
>
> Hi,
>
> Some talk from people here at SVGOpen *, has been for the idea of
> text-selection often getting in the way of UI design, the text selection
of
> the text on the SVG is a pain, spoiling the look and feel of the button,
the
> suggestion was to extend the pointer-events attribute to go further beyond
> just disabling pointer-events but to limit the style.
>
> For accessibility reasons I think you need to ensure a user stylesheet or
> other Access technology technique can over-ride this behaviour for those
who
> need to access the text, but that would be simple I feel to both implement
> and spec.
>
> pointer-events="no-select", would be one idea, but some more generalised
> solution would be possible, that perhaps cover other sort of potential
> events.
>
> Jim.
>
> * I thought it important that it get on the proper feedback list, as not
> everyone is as willing as me to put their insane ramblings here.
>
>
>
>
>

Received on Saturday, 19 July 2003 18:41:20 UTC