text-decoration, and ::first-line/::first-letter

Leo Savernik l.savernik at aon.at
Mon Oct 6 21:06:34 CEST 2003


Hello,

I wanted to fix text-decoration issues for khtml. So I looked into WebCore, 
saw that they already had a solution, merged it, and could have been happy.

However, I simply could not resist trying text-decoration in combination with 
::first-line and ::first-letter, and opened a can of worms.

Look at the attached testcase. It contains rubbish whose first line should 
have the overline (black) and the ::first-letter underline (green). The 
::first-letter should additionally have a pink line-through applied. While I 
hacked the patch so long until this was the case, I realized that there are 
other cases that still don't work, i. e. subelements in the first line don't 
inherit from the pseudo style. For a comparison, Mozilla gets it all right.

I wonder to which extent these issues also apply to WebCore.

Are there any ideas to fix css inheritage in a more generic way? Should I 
commit the raw safari merge, but not the ::first-line/::first-letter hacks?

mfg
	Leo


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/mailman/private/khtml-devel/attachments/20031006/082404ff/first-line-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: khtml_selection_9.diff
Type: text/x-diff
Size: 28944 bytes
Desc: not available
Url : http://mail.kde.org/mailman/private/khtml-devel/attachments/20031006/082404ff/khtml_selection_9-0001.bin


More information about the Khtml-devel mailing list