Version: 4.7.0 (using KDE 4.7.0) OS: Linux Testcase -------- http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/full/flat/css3-modsel-179.html View/View Document Information ...Ctrl+I: Rendering mode is Strict (Web Standards Compliant rendering mode) Relevant code chunk ------------------- p {color: green;} span:first-line {background: red; color: yellow; font-size: 4em;} <p><span>This line should be green.</span></p> CSS 2.1 reference ----------------- " The :first-line pseudo-element can only be attached to a block container element. " CSS 2.1, section 5.12.1 The :first-line pseudo-element http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo Reproducible: Always Steps to Reproduce: Load test 179: ::first-line on inlines (ID #179) http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/full/flat/css3-modsel-179.html Actual Results: The line is yellow Expected Results: The line should be green I am using KDE Platform Version: 4.7.0 Konqueror version: 4.7.0 (KHTML rendering engine) Qt Version: 4.7.2 Operating System: Linux 2.6.38-11-generic-pae i686 (32bits) Distribution: Kubuntu 11.04 here. regards, Gérard
Reduced testcase http://www.gtalbot.org/BrowserBugsSection/Konqueror4Bugs/Bug281411-first-line-should-not-apply-to-inline.html Firefox 6.0.2, Opera 11.51 and Chrome 13.0.782.220 pass this test. Konqueror 4.7.0 fails this test. 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