Bug 235523

Summary: [CSS 2.1 Conformance] Relatively positioned content inside container with overflow auto or scroll causing overflow should create active scrollbar(s)
Product: [Applications] konqueror Reporter: Gérard Talbot (no longer involved) <browserbugs2>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal Keywords: accessibility, reproducible, testcase
Priority: NOR    
Version: 4.7.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Gérard Talbot (no longer involved) 2010-04-27 05:52:56 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

Testcases
---------

A)
http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/position-relative-034.htm

and

B)
http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/position-relative-036.htm

Actual results in Konqueror 4.4.2
---------------------------------
A) There is no horizontal scrollbar present, so the content is not reachable, scrollable.

B) There is an inactive (disabled) horizontal scrollbar, so the content is not reachable, scrollable.

Expected results
----------------
A) There should be an active (enabled) horizontal scrollbar allowing the user to reach, access, view, read the content.

B) There should be an active (enabled) horizontal scrollbar allowing the user to reach, access, view, read the content.

Reference
---------
"
 (...) if relative positioning causes an 'overflow:auto' or 'overflow:scroll' box to have overflow, [then] the UA must allow the user to access this content (at its offset position), which, through the creation of scrollbars, may affect layout.
"
http://www.w3.org/TR/CSS21/visuren.html#relative-positioning

Notes
-----
Firefox 3.5.9, Firefox 3.6.3, IE8, Opera 10.10 and Opera 10.51 pass those 2 testcases.

regards, Gérard
Comment 1 Gérard Talbot (no longer involved) 2011-05-31 14:34:12 UTC
2 additional testcases:

Relatively positioned child inside a parent container with overflow set to scroll
http://test.csswg.org/suites/css2.1/20110323/html4/overflow-003.htm (RC6)

Relatively positioned child inside a parent container with overflow set to auto
http://test.csswg.org/suites/css2.1/20110323/html4/overflow-004.htm (RC6)

Konqueror 4.6.3 fail both testcases.

Firefox 4.0.1, Opera 11.11, Chrome 11.0.696.71 pass both testcases.

Gérard
Comment 2 Gérard Talbot (no longer involved) 2011-05-31 14:40:07 UTC
3rd additional testcase:

Relatively positioned child inside a parent container with overflow set to
scroll via inherit
http://test.csswg.org/suites/css2.1/20110323/html4/overflow-005.htm (RC6)

Konqueror 4.6.3 fail this testcase.

Firefox 4.0.1, Opera 11.11, Chrome 11.0.696.71 pass such testcase.

Gérard
Comment 3 Gérard Talbot (no longer involved) 2012-01-13 06:20:15 UTC
Latest version of testcases
---------------------------

A)
http://test.csswg.org/suites/css2.1/latest/html4/position-relative-034.htm

and

B)
http://test.csswg.org/suites/css2.1/latest/html4/position-relative-036.htm

Konqueror 4.7.4 (KHTML rendering engine) fails those position-relative-034 and position-relative-036 tests. 

I get expected results now for overflow-003, 004 and 005 tests.

CONFIRMING
Comment 4 Christoph Cullmann 2024-05-06 18:38:43 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann