text-decoration, and ::first-line/::first-letter
David Hyatt
hyatt at apple.com
Mon Oct 6 12:18:47 CEST 2003
Safari gets most of this right. Safari already propagates
text-decorations in effect into pseudo-styles (that was done in a
WebCore you haven't seen yet).
I had plans to fix first-line/first-letter, but I'm still trying to get
consensus from the CSS WG on how it should all work before I rip it up.
dave
On Oct 6, 2003, at 11:06 AM, Leo Savernik wrote:
> 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
>
>
> <first-
> line.html><khtml_selection_9.diff>_____________________________________
> __________
> Khtml-devel at mail.kde.org
> http://mail.kde.org/mailman/listinfo/khtml-devel
More information about the Khtml-devel
mailing list