Version: (using KDE KDE 3.1.1) Installed from: RedHat RPMs OS: Linux A div is given a width less than the screen width and has style overflow hidden. Then add a paragraph with style nowrap and contents with length wider than the screen width. The content is clipped, but the page has the width of the complete paragrahp. As a result a horisontal scrollbar is added by the browser. See testcase. --------- TEST CASE --------------------------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head><title>konqi test</title></head> <body> <div style="width: 600px; overflow: hidden; background-color: #cccccc;"> <h2>Testing overflow: hidden</h2> <p> The content is clipped, but the page has the width of the total text - not only the clipped. </p> <p style="white-space: nowrap"> overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden overflow: hidden </p> </div> </body> </html>
check out bug 11336. they might be duplicates. I voted for both though.
that test case works for me in CVS HEAD
I made the testcase on bug 11336. I am using kde 3.2.0_rc1 now, and I am glad it is "almost" working. The only issue I had was that the buttons on the scrollbar disappeared when I scrolled it using the mouse. It is a repaint issue, if I switch to another tab in konqueror, or to another application, and then switch back to the test page, the buttons show up again.
Look at http://www.digimer.com.br. It does not look right. Is it sloppy javascript and css, or there are bugs ?
Looks like this regressed in 3.2.1. Testcase works for me in 3.2.0, but I get a big horizontal scrollbar in 3.2.1.
regressed
Created attachment 6038 [details] test case
*** Bug 49199 has been marked as a duplicate of this bug. ***
Created attachment 7090 [details] proposed fix This fixes the superfluous scrollbar on the canvas by correctly honouring the overflow-clip of child elements.
CVS commit by savernik: Fixed spurious scrollbars on the canvas when the overflow of clipped children would exceed the viewports boundaries. This patch also incorporates fixes from Germain Garand: - Fixed unreachable relatively positioned content on viewport. - Fixed unreachable positioned content in clipped blocks. CC_MAIL: 57080-done@bugs.kde.org, germain@ebooksfrance.org M +47 -27 ChangeLog 1.276 M +29 -10 rendering/render_block.cpp 1.39 M +4 -3 rendering/render_box.cpp 1.237 M +10 -47 rendering/render_canvas.cpp 1.151 M +1 -1 rendering/render_flow.cpp 1.356 M +14 -3 rendering/render_object.h 1.193
CVS commit by savernik: Backport: Fixed spurious scrollbars on the canvas when the overflow of clipped children would exceed the viewports boundaries. This patch also incorporates fixes from Germain Garand: - Fixed unreachable relatively positioned content on viewport. - Fixed unreachable positioned content in clipped blocks. This commit fixes 74(!) regressions CC_MAIL: 57080@bugs.kde.org M +29 -10 render_block.cpp 1.38.2.1 M +4 -3 render_box.cpp 1.236.2.1 M +10 -47 render_canvas.cpp 1.150.2.1 M +1 -1 render_flow.cpp 1.355.2.1 M +14 -3 render_object.h 1.192.2.1