[Webkit-unassigned] [Bug 17938] CSS2.1: Underlines, overlines, and line-throughs should not be applied for no text elements like images

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 19 02:04:49 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=17938


webkit at blaut.biz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webkit at blaut.biz,
                   |                            |hyatt at apple.com,
                   |                            |ian at hixie.ch
                URL|http://www.w3.org/Style/CSS/|http://www.w3.org/Style/CSS/
                   |Test/CSS1/current/sec543.htm|Test/CSS2.1/current/html4/t1
                   |                            |504-c543-txt-decor-00-d-
                   |                            |g.htm
           Severity|Minor                       |Normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P4                          |P2
            Summary|CSS1: text-decoration does  |CSS2.1: Underlines,
                   |not span child elements     |overlines, and line-throughs
                   |                            |should not be applied for no
                   |                            |text elements like images




------- Comment #1 from webkit at blaut.biz  2008-03-19 02:04 PDT -------
Per CSS 2.1 spec: "Underlines, overlines, and line-throughs are applied only to
text (including white space, letter spacing, and word spacing): margins,
borders, and padding are skipped. If an element contains no text, user agents
must refrain from rendering these text decorations on the element. For example,
images will not be underlined."
[http://www.w3.org/TR/CSS21/text.html#decoration]

So the provided test case is rendered properly by Webkit, but... only in quirks
mode (the CSS1 test is rendered in quirks mode)! In standards mode Webkit
renders it incorrectly per CSS 2.1 specification, but follows other browsers
like Firefox and Opera. 

Check this test case for standards behavior: 
http://www.w3.org/Style/CSS/Test/CSS2.1/current/html4/t1504-c543-txt-decor-00-d-g.htm

I found Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=403524 on
this issue. I think we should consider as David Baron said changing our
behavior to follow CSS 2.1 spec. I think that the current specification
correctly describes text-decoration behavior. I can't see the sense in
underlining images.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list