<?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>235471</bug_id>
          
          <creation_ts>2022-01-22 00:24:33 -0800</creation_ts>
          <short_desc>:active selector doesn’t display</short_desc>
          <delta_ts>2022-01-25 10:37:06 -0800</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>Safari 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>22261</dup_id>
          
          <bug_file_loc></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="Reece A">04-punch-pinyons</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1832989</commentid>
    <comment_count>0</comment_count>
    <who name="Reece A">04-punch-pinyons</who>
    <bug_when>2022-01-22 00:24:33 -0800</bug_when>
    <thetext>I have recently updated to iPadOS 15 and went to my website…
When you click on a link it should change colour but since I have updated it will not. I have a 2020 iPad Pro on iPadOS15.

I used the :active selector 

a:active {
   color: brown;
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833179</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-01-23 17:43:01 -0800</bug_when>
    <thetext>Could you please provide a link to your website, or a self contained test case? The active selector works in WebKit in general, e.g. I see it working here in Bugzilla.

Are you tapping, or using a Magic Keyboard trackpad? As tapping and holding immediately starts a transition to preview, avoiding :active seems like correct behavior in that case (and matches whet I observe).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833384</commentid>
    <comment_count>2</comment_count>
    <who name="Reece A">04-punch-pinyons</who>
    <bug_when>2022-01-24 10:42:39 -0800</bug_when>
    <thetext>I am using the Magic Keyboard Trackpad. Here is the sandbox:
https://codepen.io/reeceatkinson/pen/PoOYdom</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833753</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-01-25 09:56:23 -0800</bug_when>
    <thetext>Thank you! I can reproduce on a Mac too - works as expected in Chrome, but not in Safari.

In the codepen test, the purple color comes from &quot;focus&quot;, not from &quot;active&quot;. That&apos;s longstanding expected behavior, please see bug 22261 for discussion.

.sidebar li a:focus {
  background: #ccccf0;
}

The original report here is about :active though. Do you have a test with that? Also, did that work before iPadOS 15? If something changed, that would be an indication that we could be looking at something other than bug 22261.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833758</commentid>
    <comment_count>4</comment_count>
    <who name="Reece A">04-punch-pinyons</who>
    <bug_when>2022-01-25 10:09:34 -0800</bug_when>
    <thetext>So how would I make the background turn purple when it has been clicked?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833762</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-01-25 10:20:16 -0800</bug_when>
    <thetext>The bit of code that you posted originally is the right way to achieve such behavior. If it doesn&apos;t work, please provide a complete test case - the one that you provided on codepen is different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833764</commentid>
    <comment_count>6</comment_count>
    <who name="Reece A">04-punch-pinyons</who>
    <bug_when>2022-01-25 10:22:45 -0800</bug_when>
    <thetext>I would however it is the exact same code from my production environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833770</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-01-25 10:37:06 -0800</bug_when>
    <thetext>I see. Please switch to a:active, a:focus will not work for this purpose.

*** This bug has been marked as a duplicate of bug 22261 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>