[pointerevents] It is not possible to generate one set of angle values from other set (#321)

NavidZ has just created a new issue for https://github.com/w3c/pointerevents:

== It is not possible to generate one set of angle values from other set ==
@patrickhlauke @smaug---- @liviutinta

Based on the latest spec we have the following line:
"When an untrusted (synthetic) Pointer Event is created programmatically using the constructor, and only one set of values is provided, the complementary set of attributes MUST be calculated and initialized"

But apparently based on the current bindings and how the default dictionary values are set we cannot do that. Mainly all the values are present in the PointerEventInit (either when user explicitly set them and if not with their default values as per current spec).
Talking to @domenic it seems that they expect all the constructors to be dummy setters from dictionary values and if we want to achieve the behavior we described we need to also patch the binding generation from idl and also [dom spec](https://dom.spec.whatwg.org/#concept-event-constructor).

I wonder if we can come up with an easier solution here.

Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/321 using your GitHub account

Received on Wednesday, 29 April 2020 15:42:44 UTC