Open Bug 827709 Opened 7 years ago Updated Last year

Text selection prevents the CSS 'pointer-events' rule being applied.


(Core :: DOM: Core & HTML, defect, P5)

16 Branch
Windows 8





(Reporter: eli, Unassigned)


(Keywords: testcase)


(1 file)

3.89 KB, text/html
Attached file test.html
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

Steps to reproduce:

The attached test case clearly demonstrates the issue.

The scenario: clicking and dragging an element while passing mouse events through the element by applying a pointer-events:none CSS rule.

Text selection prevents the pointer-events rule being applied.

This results in an incorrect value for in the mousemove event.

A solution is to use -moz-user-select: none; or event.preventDefault() on the click event which initiates the element drag.

Chrome behaves as expected

Actual results:

incorrect value for in the mousemove event.

Expected results:

correct value for in the mousemove event.
jsfiddle here:
Attachment #699017 - Attachment mime type: text/plain → text/html

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.