Expected overflow behavior for element with clip set?

Given the following HTML:
<style>
..parent {overflow: auto; position: relative;
         height: 100px; width: 100px}
..child {background: blue; position: absolute;
        clip: rect(0pt, 50px, 50px, 0pt);
        width: 200px; height: 200px;}
</style>
<div class=parent>
  <div class=child></div>
</div>

Is the browser expected to show scrollbars (or
whatever equivalent scrolling mechanism)?

Every browser on my computer (Opera 9, IE 6, Firefox)
shows scrollbars in this situation.  However, there
isn't actually anything there because it's been
clipped out.

I've written a patch for Firefox that changes the
behavior to only show a scrolling mechanism if there
is visible content to scroll to.  This changes the
behavior so that scrollbars no longer appear on my
testcase above.  This seems like a much more
appropriate interpretation of the specification, but
I'm not sure if there's anything else I need to
consider.  Comments?

(See
https://bugzilla.mozilla.org/show_bug.cgi?id=372037
for my patch.)


 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

Received on Thursday, 1 March 2007 22:24:12 UTC