<?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>18425</bug_id>
          
          <creation_ts>2008-04-11 02:34:16 -0700</creation_ts>
          <short_desc>Link doesn&apos;t receive focus when clicked</short_desc>
          <delta_ts>2026-04-19 19:28:11 -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>525.x (Safari 3.1)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=22261</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=312692</see_also>
          <bug_file_loc>http://elinfranzen.com/skien/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>26856</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="arnebe">arne</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>anantha</cc>
    
    <cc>arne</cc>
    
    <cc>bfulgham</cc>
    
    <cc>browserbugs2</cc>
    
    <cc>dan</cc>
    
    <cc>eloscurodeefeso</cc>
    
    <cc>eoconnor</cc>
    
    <cc>f.loughnan.morneault</cc>
    
    <cc>karlcow</cc>
    
    <cc>priyajeet.hora</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77266</commentid>
    <comment_count>0</comment_count>
    <who name="arnebe">arne</who>
    <bug_when>2008-04-11 02:34:16 -0700</bug_when>
    <thetext>the a:focus class does not show on links.
Test clicking items in the menu. They are left bold when clicked in ff2/3, explorer7, omniweb 5.7 etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77275</commentid>
    <comment_count>1</comment_count>
      <attachid>20477</attachid>
    <who name="Marcus">gamander</who>
    <bug_when>2008-04-11 06:23:39 -0700</bug_when>
    <thetext>Created attachment 20477
reduction

Added a reduction. A better title for this bug might be: Link doesn&apos;t receive focus when clicked. Maybe this is intentional?

By the way, IE 7 ignores :focus but uses the pseudo class :active as if it was :focus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77286</commentid>
    <comment_count>2</comment_count>
    <who name="arnebe">arne</who>
    <bug_when>2008-04-11 08:41:44 -0700</bug_when>
    <thetext>Its not intentional for this site, since I made it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77287</commentid>
    <comment_count>3</comment_count>
    <who name="arnebe">arne</who>
    <bug_when>2008-04-11 08:43:09 -0700</bug_when>
    <thetext>Thanks! Its not intentional for this site, since I made it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98019</commentid>
    <comment_count>4</comment_count>
    <who name="Alejandro Araneda">eloscurodeefeso</who>
    <bug_when>2008-11-08 10:29:43 -0800</bug_when>
    <thetext>This bug also occurs in Safari / Windows. Links only receive focus with TAB key navigation (if this option is activated). 
In both Firefox and Opera, links receive focus when activated.
In IE, a:focus doesn&apos;t work. Instead, a:active works after mouseup.
This is a request in order to implement some kind of cross-browser &quot;:onclick&quot; </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125838</commentid>
    <comment_count>5</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2009-06-14 15:39:12 -0700</bug_when>
    <thetext>I also confirm this bug. It still happens in latest stable release Safari 4.0
build 530.17.

Focused links with mouse-clicking does not render outline borders. 
This also affects CSS rules like:

a:focus
{
outline-width: 4px;
outline-style: solid;
outline-color: red;
}

Other testcases:


http://samples.msdn.microsoft.com/ietestcenter/frame_holder.htm?url=./css/chapter_18/Rules/outline-pseudo-selector-001.htm

CSS2 Test Suite (draft): 5.11.3 :active, :hover, and :focus from Eric Meyer
http://meyerweb.com/eric/css/tests/css2/sec05-11-03.htm

CSS 2.1 Conformance test suite (section 5.11.3 focusing links):
http://www.w3.org/Style/CSS/Test/CSS2.1/current/html4/t051103-c21-focus-ln-00-e-i.htm

IE 8 supports a:focus.

regards, Gérard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149762</commentid>
    <comment_count>6</comment_count>
    <who name="Francois">f.loughnan.morneault</who>
    <bug_when>2009-09-24 08:54:07 -0700</bug_when>
    <thetext>Uncomfirmed?  &quot;Well known&quot; would be more like it.  

See, for example, Stu Nicholls:

&quot;This use the :active and :focus states to hold a clicked image on the page until another mouse click is made, but Safari and Google Chrome handle mouse clicks in a different way to other browsers so the image will only stay on screen in these two browsers whilst the mouse key is held down,&quot;

http://www.cssplay.co.uk/menu/vertical-slide.html#nogo


This bug doesn&apos;t just apply to OSX10  -  I&apos;m on windows XP and windows vista.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150529</commentid>
    <comment_count>7</comment_count>
    <who name="Viatcheslav Ostapenko">ostap73</who>
    <bug_when>2009-09-28 09:26:42 -0700</bug_when>
    <thetext>Patch submitted here: https://bugs.webkit.org/show_bug.cgi?id=22261</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331266</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-08 14:03:24 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 22261 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331275</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-08 14:06:55 -0800</bug_when>
    <thetext>Oops, wrongly duped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331277</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-08 14:07:12 -0800</bug_when>
    <thetext>*** Bug 52102 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331279</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-08 14:07:18 -0800</bug_when>
    <thetext>*** Bug 22233 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>406201</commentid>
    <comment_count>12</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-05-18 19:23:58 -0700</bug_when>
    <thetext>*** Bug 60946 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882199</commentid>
    <comment_count>13</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-11 16:23:04 -0700</bug_when>
    <thetext>This seems to still be an issue in Safari 15.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882200</commentid>
    <comment_count>14</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-11 16:23:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/96849661&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982096</commentid>
    <comment_count>15</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-03 08:42:05 -0700</bug_when>
    <thetext>Still reproducible on WebKit ToT [268769@main] (Focus does not change to &apos;green&apos; - while Chrome Canary 119 and Firefox Nightly 120 works fine).

Adding &apos;BrowserCompat&apos; tag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022664</commentid>
    <comment_count>16</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-03-21 01:15:38 -0700</bug_when>
    <thetext>@Aditya - looking into your commit: https://commits.webkit.org/273247@main

and reading commit log:

&quot;anchor elements are not mouse focusable, following Cocoa platform convention.&quot;

Will this bug becomes &apos;Not Applicable&apos;?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>20477</attachid>
            <date>2008-04-11 06:23:39 -0700</date>
            <delta_ts>2008-04-11 06:23:39 -0700</delta_ts>
            <desc>reduction</desc>
            <filename>test.htm</filename>
            <type>text/html</type>
            <size>424</size>
            <attacher name="Marcus">gamander</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25h
bC5kdGQiPgo8aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+CjxoZWFk
Pgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgphe2NvbG9yOiMwMDAwOTl9CmE6Zm9jdXN7Y29sb3I6
IzAwOTkwMH0KYS5saW5rOmFjdGl2ZXtjb2xvcjojOTkwMDAwfQo8L3N0eWxlPgo8L2hlYWQ+Cjxi
b2R5Pgo8YnIgLz4KPGEgY2xhc3M9ImxpbmsiIGhyZWY9IiMiPkxpbms6Ymx1ZSwgYWN0aXZlOnJl
ZCwgZm9jdXM6Z3JlZW48L2E+CjxiciAvPgo8YSBocmVmPSIjIj5MaW5rOmJsdWUsIGZvY3VzOmdy
ZWVuPC9hPgogPC9ib2R5PgogPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>