[Webkit-unassigned] [Bug 142737] New: text-decoration in a:not(:link):not(:visited) rule affects <a href> elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 16 11:06:36 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=142737

            Bug ID: 142737
           Summary: text-decoration in a:not(:link):not(:visited) rule
                    affects <a href> elements
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
               URL: data:text/html,<style>a:not(:link):not(:visited) {
                    text-decoration: none }</style><a href="#">should be
                    underlined</a>
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aroben at webkit.org
                CC: benjamin at webkit.org

1. Go to data:text/html,<style>a:not(:link):not(:visited) { text-decoration: none }</style><a href="#">should be underlined</a>

In Chrome and Firefox, the text is underlined. In Safari 8.0.3 on Yosemite, it is not. (I haven't tested other versions/OSes.)

Interestingly, the bug does not occur for other CSS properties, like color:

data:text/html,<style>a:not(:link):not(:visited) { color: red }</style><a href="#">should be blue</a>

Maybe this is somehow related to https://bugs.webkit.org/show_bug.cgi?id=142734, though it would be a little surprising since that bug is about styles *not* matching, while this bug is about styles applying when they should not.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150316/a6994aed/attachment-0002.html>


More information about the webkit-unassigned mailing list