Skip to content

Commit

Permalink
[interactivity] pointer-events auto
Browse files Browse the repository at this point in the history
Add the keyword 'auto' as the initial value for pointer-events.

Browsers already support 'auto' as the initial value.

resolves #574
  • Loading branch information
ericwilligers committed Nov 6, 2018
1 parent 4f1ed86 commit fe25b40
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions master/changes.html
Expand Up @@ -910,6 +910,7 @@ <h3 id="interact">Scripting and Interactivity chapter (separate chapters in SVG
<a href="https://github.com/w3c/svgwg/issues/520">Issue discussion</a>
<a href="https://github.com/w3c/svgwg/pull/548">Edits</a>
</li>
<li>Added the <span class="prop-value">auto</span> keyword to <a>'pointer-events'</a>.</li>
</ul>
</div>

Expand Down
9 changes: 6 additions & 3 deletions master/interact.html
Expand Up @@ -294,7 +294,7 @@ <h2 id="SVGEvents">Supported events</h2>
<h3 id="RelationshipWithUIEVENTS">Relationship with UI Events</h3>

<p>The SVG DOM is compatible with all interfaces defined in, and
all the event types from,
all the event types from,
<a href="https://www.w3.org/TR/uievents/">UI Events</a>,
and the event types defined in
<a href="https://www.w3.org/TR/clipboard-apis/">Clipboard API and events</a>
Expand Down Expand Up @@ -552,12 +552,12 @@ <h2 id="PointerEventsProp">The <span class="property">'pointer-events'</span> pr
</tr>
<tr>
<th>Value:</th>
<td>bounding-box | visiblePainted | visibleFill | visibleStroke | visible | painted |
<td>auto | bounding-box | visiblePainted | visibleFill | visibleStroke | visible | painted |
fill | stroke | all | none</td>
</tr>
<tr>
<th>Initial:</th>
<td>visiblePainted</td>
<td>auto</td>
</tr>
<tr>
<th>Applies to:</th>
Expand Down Expand Up @@ -586,6 +586,9 @@ <h2 id="PointerEventsProp">The <span class="property">'pointer-events'</span> pr
</table>

<dl>
<dt><span class="prop-value">auto</span></dt>
<dd>The default behavior, which is the same as for <span class="prop-value">visiblePainted</span>.</dd>

<dt><span class="prop-value">bounding-box</span></dt>
<dd>The given element must be a target element for pointer events when the pointer is over the <a>bounding box</a> of the element.</dd>

Expand Down
6 changes: 3 additions & 3 deletions master/propidx.html
Expand Up @@ -242,7 +242,7 @@ <h1>Property Index</h1>
<th><a>'opacity'</a></th>
<td><a>&lt;alpha-value&gt;</a> </td>
<td>1</td>
<td><a>'svg'</a>, <a>'g'</a>, <a>'symbol'</a>, <a>'marker element'</a>,
<td><a>'svg'</a>, <a>'g'</a>, <a>'symbol'</a>, <a>'marker element'</a>,
<a>'a'</a>, <a>'switch'</a>, <a>'use'</a>, <a>'unknown'</a> elements
and <a>graphics elements</a></td>
<td>no</td>
Expand Down Expand Up @@ -276,10 +276,10 @@ <h1>Property Index</h1>
</tr>
<tr>
<th><a>'pointer-events'</a></th>
<td>bounding-box | visiblePainted | visibleFill | visibleStroke |
<td>auto | bounding-box | visiblePainted | visibleFill | visibleStroke |
visible |<br />
painted | fill | stroke | all | none </td>
<td>visiblePainted</td>
<td>auto</td>
<td><a>container elements</a>, <a>graphics elements</a> and <a>'use'</a></td>
<td>yes</td>
<td>N/A</td>
Expand Down

0 comments on commit fe25b40

Please sign in to comment.