Open Bug 1259924 Opened 4 years ago Updated 18 days ago
[quirks mode] mousemove fails because <body> element height doesn't fill the viewport
OS: Unspecified → Windows 7
Hardware: Unspecified → x86
Did you test your testcase after attaching to the bug report? I tested it and I don't see the container moving... Could you check, please.
Olli, what do you think is the issue here?
So the issue is that mousemove listener is added to the parent element of the box, which happens to be <body>, and in Gecko that element seems to have size (width=100%, height=0), so if mouse isn't over the descendants of <body>, it ends up being on top of viewport, not <body>, and so <body> never gets the events. In Chrome and Edge the size of <body> is (100%, 100%) or some such. I don't know why we behave differently here.
Component: DOM: Events → Layout
Flags: needinfo?(bugs) → needinfo?(dbaron)
Every time it comes up in the CSS working group, people say they don't want to add exceptions for body. But so far other browsers have failed to remove theirs...
So is there anything we could do here? Or could you bring this up with the WG again?
Summary: mousemove fails when moving mouse quickly -- but not always → [quirks mode] mousemove fails because <body> element doesn't fill the viewport
Given that Chrome's behavior is quirks mode only, we should probably just emulate it. needinfo? to zcorpan to spec the body height behavior in https://quirks.spec.whatwg.org/
Flags: needinfo?(dbaron) → needinfo?(zcorpan)
Summary: [quirks mode] mousemove fails because <body> element doesn't fill the viewport → [quirks mode] mousemove fails because <body> element height doesn't fill the viewport
https://github.com/whatwg/quirks/commit/c81e2a263fb9f89fdfc55010afe666f1711540b7 Feedback welcome. Some more work is necessary for the "percentage height calculation quirk" and update tests...
It seems that this fell off the radar...? This just bit us again today on webcompat.com in issue #9045, so it's definitely still affecting sites.
See Also: → https://webcompat.com/issues/9045
In quirks mode, Chrome, Edge: green body height is 100% of viwport Firefox: blue body height is 0
Webcompat Priority: --- → ?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
18 days ago
Duplicate of this bug: 1597778
You need to log in before you can comment on or make changes to this bug.