Version: (using KDE 4.4.2) OS: Linux Installed from: Ubuntu Packages Testcase -------- http://www.w3.org/Style/CSS/Test/CSS2.1/20100316/html4/box-generation-003.htm Actual results in Konqueror 4.4.2 --------------------------------- The marker box has a blue background-color. Expected results ---------------- The marker box should not have a blue background-color; it should have a transparent background so that the background-color of the canvas (usually white) shines through. References ---------- "An element with 'display: list-item' generates a principal box for the element's content and an optional marker box as a visual indication that the element is a list item. (...)" http://www.w3.org/TR/CSS21/generate.html#list-style The initial value of list-style-position is outside which means that the "marker box is outside the principal block box". http://www.w3.org/TR/CSS21/generate.html#list-style Notes ----- That testcase is passed by Firefox 3.6.3, Opera 10.51, IE8 and Safari 4.0.5. regards, Gérard
Reference --------- " The background properties apply to the principal box only; an [list-style-position] 'outside' marker box is transparent. " http://www.w3.org/TR/CSS21/generate.html#lists regards, Gérard
CSS Test: Background applied to an element with 'display' set to 'list-item' http://test.csswg.org/suites/css2.1/20110111/html4/background-applies-to-010.htm
CSS Test: Background-color applied to an element with 'display' set to 'list-item' http://test.csswg.org/suites/css2.1/20110111/html4/background-color-applies-to-010.htm
Better description of this bug ============================== An element styled with 'display: list-item' will create a principal block box and a marker box for its list-marker (with a disc). Such list-marker will be inside, not outside; such list-marker will behave as if styled as 'list-style-position: inside' and not as 'list-style-position: outside' and that is the bug, spec violation. The list-marker bullet should be outside, not inside. Fixing this bug will fix the following 35 testcases from CSS 2.1 test suite (RC5) (total estimated at 55 testcases): http://test.csswg.org/suites/css2.1/20110111/html4/background-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/background-attachment-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/background-color-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/background-image-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/background-position-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/background-repeat-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-bottom-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-bottom-color-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-bottom-style-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-bottom-width-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-collapse-applies-to-003.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-color-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-left-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-left-color-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-left-style-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-left-width-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-right-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-right-color-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-right-style-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-right-width-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-spacing-applies-to-003.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-style-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-top-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-top-color-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-top-style-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-top-width-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/border-width-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/bottom-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/box-generation-003.htm http://test.csswg.org/suites/css2.1/20110111/html4/clear-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/cursor-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/empty-cells-applies-to-003.htm http://test.csswg.org/suites/css2.1/20110111/html4/float-applies-to-010.htm http://test.csswg.org/suites/css2.1/20110111/html4/font-size-applies-to-003.htm and at least 20 additional testcases. Gérard
Another good testcase for this bug report: http://test.csswg.org/suites/css2.1/latest/html4/lists-backgrounds-001.htm Gérard
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