Bug 59492 - [CSS 2.1 Conformance] several test failures regarding :first-line pseudo-element
Summary: [CSS 2.1 Conformance] several test failures regarding :first-line pseudo-element
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 4.8.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL: http://www.gtalbot.org/BrowserBugsSec...
Keywords: reproducible, testcase, triaged
: 225572 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-08 00:09 UTC by S Leiber
Modified: 2012-06-21 18:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S Leiber 2003-06-08 00:09:05 UTC
Version:            (using KDE Devel)
Compiler:          gcc 3.2.2 
OS:          Linux

There are a view errors rendering the :first-line funktion from css2. You can see it on the page:
http://www.meyerweb.com/eric/css/tests/css2/sec05-12-01.htm

- The font size was not set correctly
- and the option for items are ignorred

Sven
Comment 1 Moritz Moeller-Herrmann 2003-06-08 16:34:52 UTC
Apart from :first-letter not working in list, I can't see any bugs... 
Comment 2 S Leiber 2003-06-08 18:01:41 UTC
I update to the latest cvs-version and see again. We can close it if I later see that it 
don't work again, I open this bug again.  :) 
 
Sven 
 
Comment 3 Ismail Donmez 2003-06-08 18:37:49 UTC
This is not working quite well reopening->new . 
Comment 4 Allan Sandfeld 2005-01-01 16:08:43 UTC
It seems :first-line should be applied to first entry in a list but isn't.
Comment 5 Allan Sandfeld 2006-06-09 13:49:59 UTC
Actually we match MSIE behavior here.
Comment 6 A. Spehr 2008-04-06 04:33:33 UTC
FWIW we also match FF2 and a random Opera 9.5 beta. 

We fail the second to last test (well, if you count the last test to be a test).
Comment 7 A. Spehr 2008-04-06 04:59:11 UTC
Opps, should add that I'm using 4.0 r793981
Comment 8 Charles Samuels 2008-08-11 11:35:37 UTC
might be related to #145701
Comment 9 A. Spehr 2008-11-23 01:04:36 UTC
We still fail:

The first line of this list item, and only this one, should be displayed with a font-size of 200%.

in rev 887757
Comment 10 Gérard Talbot (no longer involved) 2010-01-10 00:41:26 UTC
:first-line pseudo-element selector and text-transform testcase:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/first-line-selector-014.html

:first-line pseudo-element selector and text-transform applied on an unordered list:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/first-line-selector-015.html

Konqueror 4.3.4 (Linux 2.6.31-17-generic; Linux i686) fail both tests.

Safari ignores "text-transform" attribute in "first-line" CSS rules:
https://bugs.webkit.org/show_bug.cgi?id=3409


Another CSS 2.1 test failure for Konqueror 4.3.4 with regards to :first-line pseudo-element selector:

http://www.hixie.ch/tests/adhoc/css/selectors/first-line/005.html

regards, Gérard
Comment 11 Gérard Talbot (no longer involved) 2010-04-05 06:52:18 UTC
Bug 225572 involves text-transform: uppercase

Gérard
Comment 12 Gérard Talbot (no longer involved) 2011-01-23 19:21:18 UTC
There are other instances of :first-line testcase failures and at least one involves very simple code.

http://www.gtalbot.org/BrowserBugsSection/Konqueror4Bugs/Bug59492-first-line-testcase.html

In such testcase, the word "test" should be bright green. It is not bright green in Konqueror 4.5.5.

Relevant code chunk:

 <style type="text/css">
 body {color: black;}
 h1:first-line {color: lime;}
 </style>

 <h1>First, <span>test</span>, second, third, fourth, fifth...</h1>


The CSS 2.1 test suite (RC5) at this precise url
http://test.csswg.org/suites/css2.1/20110111/html4/chapter-5.html#s5.12.1
lists about 65 testcases on :first-line . Some are complex and edge cases.

regards, Gérard
Comment 13 Gérard Talbot (no longer involved) 2011-03-20 18:01:30 UTC
All of the :first-line testcase failures (links to testcases and, if applicable, links to reftests; pseudo-element first-line testcases as well as first-line selector testcases) are listed here (from row-record #5064 to row-record #5108):

http://www.gtalbot.org/BrowserBugsSection/Konqueror4Bugs/Konq-IR-CSS21TestSuite-51.html

Gérard Talbot
Comment 14 Dawit Alemayehu 2011-12-19 01:46:12 UTC
*** Bug 225572 has been marked as a duplicate of this bug. ***
Comment 15 Myriam Schweingruber 2012-06-20 08:54:54 UTC
Does this still apply to Konqueror 4.8.4 or later?
Comment 17 Gérard Talbot (no longer involved) 2012-06-21 18:44:47 UTC
Correction:
http://test.csswg.org/suites/css2.1/20110323/html4/first-line-selector-011.htm (inline-block)

Gérard