<?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>292552</bug_id>
          
          <creation_ts>2025-05-05 09:26:01 -0700</creation_ts>
          <short_desc>[css-anchor-position-1] Anchor positioning on pseudo elements does not work</short_desc>
          <delta_ts>2025-06-13 16:34:58 -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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>293625</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>291856</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Niklas Ljunglöf">slipped-gazette.0w</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fantasai.bugs</cc>
    
    <cc>kiet.ho</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2115125</commentid>
    <comment_count>0</comment_count>
      <attachid>475140</attachid>
    <who name="Niklas Ljunglöf">slipped-gazette.0w</who>
    <bug_when>2025-05-05 09:26:01 -0700</bug_when>
    <thetext>Created attachment 475140
Test using `position-anchor` and `position-area` on an `::after` pseudo-element

Using anchor position properties or the `anchor()` function on pseudo elements has no effect. Tested in Safari TP 218. Works as expected in Chromium browsers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2116502</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-05-12 09:26:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/151152788&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123612</commentid>
    <comment_count>2</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-06-13 15:05:44 -0700</bug_when>
    <thetext>I believe this was fixed by https://github.com/WebKit/WebKit/pull/46201</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123638</commentid>
    <comment_count>3</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2025-06-13 16:34:41 -0700</bug_when>
    <thetext>Confirmed that this works in 296210@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2123639</commentid>
    <comment_count>4</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2025-06-13 16:34:58 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 293625 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>475140</attachid>
            <date>2025-05-05 09:26:01 -0700</date>
            <delta_ts>2025-05-05 09:26:01 -0700</delta_ts>
            <desc>Test using `position-anchor` and `position-area` on an `::after` pseudo-element</desc>
            <filename>anchor-positioned-pseudo-element-test.html</filename>
            <type>text/html</type>
            <size>605</size>
            <attacher name="Niklas Ljunglöf">slipped-gazette.0w</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgoJPGhlYWQ+CgkgICAgPG1ldGEgY2hhcnNldD0iVVRGLTgi
PgoJICAgIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgs
IGluaXRpYWwtc2NhbGU9MS4wIj4KCSAgICA8dGl0bGU+QW5jaG9yIHBvc2l0aW9uZWQgcHNldWRv
IGVsZW1lbnQgdGVzdDwvdGl0bGU+CgkJCTxzdHlsZT4KCQkJCWRpdiB7CgkJCQkJYW5jaG9yLW5h
bWU6IC0tYTsKCQkJCQlhc3BlY3QtcmF0aW86IDE7CgkJCQkJd2lkdGg6IDUwcHg7CgkJCQkJYmFj
a2dyb3VuZC1jb2xvcjogcmVkOwoJCQkJfQoKCQkJCWRpdjo6YWZ0ZXIgewoJCQkJCWNvbnRlbnQ6
ICIiOwoJCQkJCXBvc2l0aW9uOiBhYnNvbHV0ZTsKCQkJCQlwb3NpdGlvbi1hbmNob3I6IC0tYTsK
CQkJCQlwb3NpdGlvbi1hcmVhOiBjZW50ZXI7CgkJCQkJcGxhY2Utc2VsZjogc3RyZXRjaDsKCQkJ
CQliYWNrZ3JvdW5kLWNvbG9yOiBncmVlbjsKCQkJCX0KCQkJPC9zdHlsZT4KCTwvaGVhZD4KCTxi
b2R5PgoJCTxwPlRlc3Qgc3VjY2Vzc2Z1bCBpZiBhIGdyZWVuIGJveCBpcyBzaG93biBiZWxvdy48
L3A+CgkJPGRpdj48L2Rpdj4KCTwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>