W3C home > Mailing lists > Public > www-style@w3.org > August 2003

clip and overflow:hidden

From: Philip Hoyt <phoyt@macbox.com>
Date: Tue, 26 Aug 2003 06:18:13 -1000
To: www-style@w3.org
Message-ID: <web-12159818@MauiMail.com>

Clip and overflow:hidden, have a common problem as implemented on
current browsers (haven't tested in Windows, but all common Mac
browsers): they hide content which lies outside the visible area, but
the canvas extends to accommodate the invisible content. This means
that if you're clipping a large content area, say, to create a dhtml
scroller that extends the width of the page, the browser will add a
horizontal scrollbar to bottom of the page for the invisible content,
in effect a scrollbar to nowhere. 


(note, all tested browsers show the effect in the clip example, but
safari treats overflow a bit differently)

I checked the spec and it doesn't seem to say how clipped content
should affect the page canvas, so I can't really claim this is a
browser bug. Maybe future specs could be a bit more clear and state
that hidden content should not affect the page canvas?
Received on Tuesday, 26 August 2003 12:18:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:08 UTC