<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>142737</bug_id>
          
          <creation_ts>2015-03-16 11:06:36 -0700</creation_ts>
          <short_desc>text-decoration in a:not(:link):not(:visited) rule affects &lt;a href&gt; elements</short_desc>
          <delta_ts>2022-07-24 13:37:54 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>data:text/html,&lt;style&gt;a:not(:link):not(:visited) { text-decoration: none }&lt;/style&gt;&lt;a href=&quot;#&quot;&gt;should be underlined&lt;/a&gt;</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>benjamin</cc>
    
    <cc>bfulgham</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1077472</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2015-03-16 11:06:36 -0700</bug_when>
    <thetext>1. Go to data:text/html,&lt;style&gt;a:not(:link):not(:visited) { text-decoration: none }&lt;/style&gt;&lt;a href=&quot;#&quot;&gt;should be underlined&lt;/a&gt;

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

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

data:text/html,&lt;style&gt;a:not(:link):not(:visited) { color: red }&lt;/style&gt;&lt;a href=&quot;#&quot;&gt;should be blue&lt;/a&gt;

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077495</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2015-03-16 11:33:28 -0700</bug_when>
    <thetext>Looks like this is not a bug in the r181548 nightly build. I wonder when it was fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077497</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2015-03-16 11:38:37 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Looks like this is not a bug in the r181548 nightly build. I wonder when it
&gt; was fixed?

My guess is it was not fixed :)

It looks like a bug in the way we computed the link-state of selectors. When we disabled :not(:visited), we hid this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077498</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2015-03-16 11:40:48 -0700</bug_when>
    <thetext>Also not a bug in r179145.

I tried r160979 but it won&apos;t launch on Yosemite.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886388</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-24 11:48:24 -0700</bug_when>
    <thetext>I am not able to reproduce this bug using Comment 01 test case in Safari 15.6 on macOS 12.5.

I changed the test case into following JSFiddle - https://jsfiddle.net/n2yqk4pw/show

It is showing &apos;underlined&apos; text and it is same across all other browsers (Chrome Canary 106 and Firefox Nightly 104) and Comment 03 also show it as being fixed, so I think we can mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>