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 23607 - overflow:scroll should mean there's a scrolling box even if there's no overflow
Summary: overflow:scroll should mean there's a scrolling box even if there's no overflow
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: 2013-10-23 12:36 UTC by Simon Pieters
Modified: 2013-10-23 13:49 UTC (History)
0 users

See Also:


Attachments

Description Simon Pieters 2013-10-23 12:36:11 UTC
http://dev.w3.org/csswg/cssom-view/#terminology

[[
Elements and viewports have an associated scrolling box if it overflows its content area and either has a scrolling mechanism or the used value of the 'overflow-x' or 'overflow-y' property is 'hidden'. [CSSBOX]
]]

It appears that overflow:scroll should have a scrolling box always.

Change to:

Elements and viewports have an associated scrolling box if it has a scrolling mechanism or it overflows its content area and the used value of the 'overflow-x' or 'overflow-y' property is 'hidden'. [CSSBOX]

This affects the behavior of document.body.scrollTop in quirks mode when body has overflow:scroll but no overflowing content. See bug 23603
Comment 1 Simon Pieters 2013-10-23 13:49:36 UTC
https://dvcs.w3.org/hg/csswg/rev/456fdd8be0d5