W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

Re: [csswg-drafts] CSS :active and JS mousedown preventDefault complication

From: François REMY via GitHub <sysbot+gh@w3.org>
Date: Sun, 04 Feb 2018 08:46:51 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-362890871-1517734010-sysbot+gh@w3.org>
> That testcase removes the actual target of the event (the textnode) from the DOM onmousedown, so the mousedown and mouseup are happening on different nodes.

Hashtag "When one line of debug code derails you testcase " :)

So, I wasn't able to find much of a specific behavior for links in Edge (except AREA) but I do see the special behavior for the space key and buttons.

The interop difference between Edge/Chrome and Firefox is shown here:
http://jsbin.com/bavexoneno/edit?html,console,output

Firefox adds "active" as a "default action" of mousedown (hence cancellable), while active is already set before firing mousedown in the other browsers.

-- 
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2262#issuecomment-362890871 using your GitHub account
Received on Sunday, 4 February 2018 08:46:56 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC