RESOLVED CONFIGURATION CHANGED 17938
CSS2.1: Underlines, overlines, and line-throughs should not be applied for no text elements like images
https://bugs.webkit.org/show_bug.cgi?id=17938
Summary CSS2.1: Underlines, overlines, and line-throughs should not be applied for no...
Christian Lindemer
Reported 2008-03-18 23:30:21 PDT
The text-decoration property does not properly span child elements as tested at the noted URL. Instead, the text-decoration is "broken" by the child element and resumes when the text itself resumes. The appropriate test case is the ninth of the linked URL.
Attachments
Safari 15.5 matches with other browsers (1.35 MB, image/png)
2022-06-21 13:11 PDT, Ahmad Saleem
no flags
Robert Blaut
Comment 1 2008-03-19 02:04:49 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.
Dave Hyatt
Comment 2 2008-03-19 02:08:33 PDT
Yeah this changed from 2 to 2.1. I think basically our entire strict mode path is obsolete now.
Ahmad Saleem
Comment 3 2022-06-21 13:11:31 PDT
Created attachment 460380 [details] Safari 15.5 matches with other browsers Based on attached test case in URL - all browsers match each other across all test cases (lines) as shown in the attached screenshots. Tested browsers - Safari 15.5 on macOS 12.4, Firefox Nightly 103 and Chrome Canary 105 I am not clear on web-spec but since it is consistent across all browsers for Test 9 as mentioned in Comment 09, can it be considered as "RESOLVED CONFIGURATION CHANGED"? Thanks!
Ryosuke Niwa
Comment 4 2022-06-21 13:42:14 PDT
Yup, config changed.
Note You need to log in before you can comment on or make changes to this bug.