Bug 18318

Summary: Styled href links being incorrectly inherited beyond their scope
Product: WebKit Reporter: Dane Muldoon <leden>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: mitz
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://solarguys.com.au/link_style_test.htm

Dane Muldoon
Reported 2008-04-04 19:55:48 PDT
I have a series of menu links in a div with styling that is limited in scope to that div using "div#menu". Later on the same page, links to the same URLs as the menu links take on the menu link styling while links to different URLs do not. Please see http://solarguys.com.au/link_style_test.htm for a test case. This problem exists in the latest nightly build and Safari 3.1, but not in Coda 1.1 which is my development tool.
Attachments
mitz
Comment 1 2008-04-05 01:39:10 PDT
The oddly-styled links are visited links. The style sheet reads: div#menu a:link, a:visited {z-index: 100; padding-top: 4px; margin:0 1px 0 1px; width: 104px; height: 21px; ... Which selects links descending from div#menu AND all visited links, regardless of whether they descend from div#menu.
Note You need to log in before you can comment on or make changes to this bug.