Intent to Implement and ship: fractional PointerEvents.offsetX/Y

46 views
Skip to first unread message

eir...@chromium.org

unread,
Jul 31, 2018, 5:44:42 PM7/31/18
to blink-dev

Contact emails

eir...@chromium.org


Spec

https://drafts.csswg.org/cssom-view/#extensions-to-the-mouseevent-interface


Summary

Expose full precision for PointerEvent.offsetX/Y as other pointerevent coordinates.


Motivation

pointerevent fractional coordinates were shipped from M64, including cllientX/Y, screenX/Y, pageX/Y and X/Y, but offsetX/Y were left behind. We received a request about providing full precision for offsetX/Y as well.


Compatibility and Interoperability Risks

The risk show be low since we already shipped full precision for other PE coordinates from M64, user will expect seeing fractional value for offsetX/Y as well.

Edge/IE expose fractions for offsetX/Y together with other PE coordinates.

Firefox has all PE coordinates in integer.

Safari doesn’t have PointerEvent.


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes


Link to entry on the feature dashboard

(I don't think it needs a dashboard entry, but will create one if anyone think it does)

Requesting approval to ship?

Yes


Rick Byers

unread,
Aug 2, 2018, 1:07:08 PM8/2/18
to Ella Ge, blink-dev
LGTM1

Like for the others, I assume this won't effect the offsetX/Y values returned from MouseEvent, right?

If so this is probably pretty close to the "bug fix only" end of the risk spectrum - sites using pointer events are already prepared for fractional values and it's just weird that offsetX/Y were an exception. I wouldn't bother with a chromestatus entry or mention in the blog post (and even doing an intent is perhaps overkill IMHO).



--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/8a4a54ce-8862-43e0-941f-a03008237cf6%40chromium.org.

Ella Ge

unread,
Aug 2, 2018, 1:12:54 PM8/2/18
to Rick Byers, blink-dev
Right, it's definitely not affecting mouseevent.offsetX/Y.

Chris Harrelson

unread,
Aug 6, 2018, 8:37:55 PM8/6/18
to Ella Ge, Rick Byers, blink-dev
LGTM2

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADo_RtgckJoHozatf9z3mziaveL7YmPSwV_7TVhjkTnkqUZ7Tg%40mail.gmail.com.

Yoav Weiss

unread,
Aug 7, 2018, 2:58:46 AM8/7/18
to Chris Harrelson, Ella Ge, Rick Byers, blink-dev
Reply all
Reply to author
Forward
0 new messages