This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28487 - Checking scrolling box of body for scrollTop doesn't match Gecko
Summary: Checking scrolling box of body for scrollTop doesn't match Gecko
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM View (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-14 09:21 UTC by Simon Pieters
Modified: 2015-04-14 09:35 UTC (History)
2 users (show)

See Also:


Attachments

Description Simon Pieters 2015-04-14 09:21:23 UTC
Consider http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3498

<!-- quirks -->
<html style="overflow:auto; background:url(image) no-repeat center center">
<body style="overflow:auto; height:1000px;" onload="document.body.scrollTop = 400">x

The body doesn't have a scrolling box (since it doesn't overflow, so it doesn't have a scrolling mechanism). So it should scroll the viewport per spec. But Gecko doesn't do that. I think it checks the overflow property without considering if it actually overflows. That seems simpler/better.