On Thu, Jan 7, 2016 at 10:55 PM, Justin Novosad <ju...@chromium.org> wrote:
> http://www.w3.org/TR/2015/REC-2dcontext-20151119/#hit-regions
You mean https://html.spec.whatwg.org/multipage/scripting.html#hit-regions,
right?
On Thu, Jan 7, 2016 at 10:55 PM, Justin Novosad <ju...@chromium.org> wrote:
> http://www.w3.org/TR/2015/REC-2dcontext-20151119/#hit-regions
You mean https://html.spec.whatwg.org/multipage/scripting.html#hit-regions,
right?
--
https://annevankesteren.nl/
--
https://annevankesteren.nl/
Hmm... the Blink implementation also adds the 'region' attribute to TouchEvent which is not in the W3C spec, and it also has the fillRule option.
One inconsistency I found is that the W3C version says a NotSupportedError should be thrown if neither an ID or a control are specifiedAfter review, I want to amend the definition of the scope of this intent to ship:What we intend to ship is a partial implementation of https://html.spec.whatwg.org/multipage/scripting.html#hit-regionWe intend to initially ship with support for only the following HitRegion options: path, fillRule, id, and control.All other options (parentID, cursor, label, role) will be ignored and the implementation will behave as if those options were set to their default values
On Fri, Jan 8, 2016 at 11:15 AM, Justin Novosad <ju...@chromium.org> wrote:Hmm... the Blink implementation also adds the 'region' attribute to TouchEvent which is not in the W3C spec, and it also has the fillRule option.Can you point me to more details about the TouchEvent change? I quickly searched / skimmed the spec and current implementation in ToT, but I haven't yet found what you're referring to here.
One inconsistency I found is that the W3C version says a NotSupportedError should be thrown if neither an ID or a control are specifiedAfter review, I want to amend the definition of the scope of this intent to ship:What we intend to ship is a partial implementation of https://html.spec.whatwg.org/multipage/scripting.html#hit-regionWe intend to initially ship with support for only the following HitRegion options: path, fillRule, id, and control.All other options (parentID, cursor, label, role) will be ignored and the implementation will behave as if those options were set to their default valuesThis is exactly what I was about to suggest you do, thank you! In particular, indicating (eg. in comments we add to the IDL file) that we're intending to match the WhatWG spec is a reminder that if the behavior changes in the WhatWG spec then it's either a bug in blink or a bug in the spec that we don't match (i.e. we implement a living standard, not a specific snapshot).This is especially important when the only other shipping browser is Firefox. Presumably their implementation completely ignores whatever happens to be written in the W3C spec ;-). So we maximize interoperability by focusing on the WhatWG spec as well.
This is exactly what I was about to suggest you do, thank you! In particular, indicating (eg. in comments we add to the IDL file) that we're intending to match the WhatWG spec is a reminder that if the behavior changes in the WhatWG spec then it's either a bug in blink or a bug in the spec that we don't match (i.e. we implement a living standard, not a specific snapshot).This is especially important when the only other shipping browser is Firefox. Presumably their implementation completely ignores whatever happens to be written in the W3C spec ;-). So we maximize interoperability by focusing on the WhatWG spec as well.
On Fri, Jan 8, 2016 at 5:09 PM, Rick Byers <rby...@chromium.org> wrote:On Fri, Jan 8, 2016 at 11:15 AM, Justin Novosad <ju...@chromium.org> wrote:Hmm... the Blink implementation also adds the 'region' attribute to TouchEvent which is not in the W3C spec, and it also has the fillRule option.Can you point me to more details about the TouchEvent change? I quickly searched / skimmed the spec and current implementation in ToT, but I haven't yet found what you're referring to here.Yeah... you kinda need to know what to look for. The code is implemented as a partial interface in the canvas2D module:See also the EventHitRegion and MouseEventHitRegion classes
On Fri, Jan 8, 2016 at 11:28 PM, Justin Novosad <ju...@chromium.org> wrote:On Fri, Jan 8, 2016 at 5:09 PM, Rick Byers <rby...@chromium.org> wrote:On Fri, Jan 8, 2016 at 11:15 AM, Justin Novosad <ju...@chromium.org> wrote:Hmm... the Blink implementation also adds the 'region' attribute to TouchEvent which is not in the W3C spec, and it also has the fillRule option.Can you point me to more details about the TouchEvent change? I quickly searched / skimmed the spec and current implementation in ToT, but I haven't yet found what you're referring to here.Yeah... you kinda need to know what to look for. The code is implemented as a partial interface in the canvas2D module:See also the EventHitRegion and MouseEventHitRegion classesThanks, I found the IDL files and from there the relevant spec sections:I see that the MouseEventInit extensions aren't in Blink, can you add that before shipping?
LGTM1 to ship!