Version: (using KDE KDE 3.5.7) Installed from: Ubuntu Packages OS: Linux I came across this problem while trying to embed an Xbox Live Gamer Card using the object element instead of using the deprecated iframe element. Basically, here's what I try to do. First, the CSS: #test { width: 200px; height: 100px; overflow: hidden; } Next, the HTML: <object id='test' type='text/html' data='link_to_some_page_wider_and_taller_than_200x100.html'> <a href='same_link.html'>View page of interest</a> </object> Using _any_ overflow property on the object will not affect it at all; instead, it will still contain scrollbars and refuse to respect mah authoritah. I tried testing this with an image, but then I realised (after trying it of course :/) that setting a width and height on the image would resize the image, and telling it just to do 'overflow: hidden' without specifying a width or height wouldn't really work (and resizing the browser as a width/height limit doesn't seem to do anything). I even tried doing HTML like this, but it had different (but still incorrect) results: <div id='test'> <object type='text/html' ...>...</object> </div> Instead of the object being hidden, it still overflows as if it were "overflow:visible". However, I attempted this with an image object element (<object type='image/png' ...> etc.), and the overflow attribute applied to it correctly. So, as of the testing I've done, it appears that I cannot apply the overflow CSS attribute to an object element of type text/html while I am able to do so with an object element of another type such as image/png. I can supply a test case, but it will take a few minutes to modify the original test case to work on here instead.
Created attachment 21119 [details] Test case image used in HTML (512x512px black). Here is an image that will be used in the HTML test case.
Created attachment 21121 [details] HTML test case Here is the HTML test case that demonstrates the problems in question. I used my gamer card for the HTML object.
Created attachment 21122 [details] Update to previous HTML test case. Oops, forgot to do something in the test case. Modified.
overflow doesn't apply to replaced elements per CSS2.1, AFAIK.
closing per comment #4