Bug 15206 - REGRESSION: links/images cut in half (body:last-child CSS hack doesn't work in TOT)
Summary: REGRESSION: links/images cut in half (body:last-child CSS hack doesn't work i...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Nobody
URL: http://sfgate.com
Keywords: InRadar, Regression
Depends on: 4812
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-13 14:08 PDT by David Carson
Modified: 2008-02-20 06:36 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carson 2007-09-13 14:08:44 PDT
The images in the left hand side of the screen, in the Marketplace section have the bottom half cut off.
Comment 1 mitz 2007-09-14 01:49:30 PDT
This bug stems from the recent removal of (buggy) :last-child support. Specifically, WebKit no longer applies this odd rule[1] in <http://sfgate.com/templates/types/homepage/style/homepage.css>:

body:last-child #verticalmenu li a {
width:auto;
display:block;
}

[1] body:last-child is a CSS hack for targeting specific browsers: <http://thomas.tanreisoftware.com/?p=11>.

Bug 5468 is tracking the :last-child situation.
Comment 2 mitz 2007-09-14 02:07:01 PDT
Andrew Wellington has confirmed that this is indeed a regression from Safari 2.0.4 (which had the buggy :last-child support).

To keep the CSS hack working, WebKit could special-case body:last-child. Doing so would be backwards- and forwards-compatible.

Otherwise, I am afraid this bug is an evangelism bug.
Comment 3 David Kilzer (:ddkilzer) 2007-09-18 07:18:34 PDT
<rdar://problem/5488787>
Comment 4 Beth Dakin 2007-11-08 15:01:33 PST
I talked to Hyatt about this on IRC. He didn't like the idea of a hack, so for now, we will make this an Evangelism bug.
Comment 5 mitz 2008-02-02 10:49:18 PST
:last-child fixed in <http://trac.webkit.org/projects/webkit/changeset/29933>.