Re: [svgwg] Clarify hit testing behavior of <foreignObject>

The Working Group just discussed `Clarify hit testing behavior of <foreignObject>`, and agreed to the following:

* `RESOLVED: Add rule for pointer-events of foreignObject, to match browser implementation (exact wording TBD)`

<details><summary>The full IRC log of that discussion</summary>
&lt;BogdanBrinza> topic: Clarify hit testing behavior of &lt;foreignObject><br>
&lt;BogdanBrinza> GitHub: https://github.com/w3c/svgwg/issues/427<br>
&lt;AmeliaBR> Dirk: Browsers seem to agree to use the bounding box<br>
&lt;AmeliaBR> Amelia: It looks like its currently not defined at all in the spec?<br>
&lt;AmeliaBR> https://svgwg.org/svg2-draft/interact.html#PointerEventsProp<br>
&lt;AmeliaBR> Dirk: Or should we leave it up to the document that gets embedded to define how hit testing works.<br>
&lt;AmeliaBR> Bogdan: I'm not sure that's well defined anywhere, but we seem to have interoperable behavior.<br>
&lt;AmeliaBR> Amelia: `pointer-events` in general isn't defined anywhere for CSS box layout, but it is interoperable<br>
&lt;AmeliaBR> Bogdan: For this specific issue, should we define it somewhere to match browsers?<br>
&lt;AmeliaBR> ... Can you make that edit?<br>
&lt;AmeliaBR> Dirk: I think the proposal is that child document types should define hit testing.<br>
&lt;AmeliaBR> Amelia: That's find for child elements. But for the `&lt;foreignObject>` itself, should it be transparent (so only gets hits if a child element is hit), or should it be a full rectangle.<br>
&lt;AmeliaBR> Dirk: I think it should be the full rectangle. That's what's implemented.<br>
&lt;krit> https://wiki.csswg.org/spec/css4-ui#pointer-events<br>
&lt;AmeliaBR> Bogdan: I would also recommend using the full rectangle, since the browsers are interoperable. I'd like to capture this in the spec.<br>
&lt;AmeliaBR> Dirk: Are we OK adding a "May" section about child elements may have hit-testing rules defined according to their own document language.<br>
&lt;AmeliaBR> Bogdan: That seems fine, just a short "may" sentence &amp; that's it.<br>
&lt;AmeliaBR> RESOLVED: Add rule for pointer-events of foreignObject, to match browser implementation (exact wording TBD)<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/427#issuecomment-387172720 using your GitHub account

Received on Monday, 7 May 2018 19:16:08 UTC