Bug 18318
Summary: | Styled href links being incorrectly inherited beyond their scope | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dane Muldoon <leden> |
Component: | CSS | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
mitz
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.