<?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>307660</bug_id>
          
          <creation_ts>2026-02-12 01:53:21 -0800</creation_ts>
          <short_desc>Anchor Position ignores transformed parent position</short_desc>
          <delta_ts>2026-04-24 15:14:28 -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>Layout and Rendering</component>
          <version>Safari 26</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 26</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>313104</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>hello</reporter>
          <assigned_to name="Kiet Ho">kiet.ho</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>kiet.ho</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2180705</commentid>
    <comment_count>0</comment_count>
      <attachid>478325</attachid>
    <who name="">hello</who>
    <bug_when>2026-02-12 01:53:21 -0800</bug_when>
    <thetext>Created attachment 478325
A code example of how anchored items position themselves with differently positioned parents

If an anchored item lives inside a transformed parent, the anchored item will ignore the transform and place itself where the item it was anchoring to would have appeared without the transform.

This happens in the initial release of Anchor Positioning in WebKit has well as the latest 21623.2.7.11.6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2183001</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-02-19 01:54:10 -0800</bug_when>
    <thetext>&lt;rdar://problem/170707849&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2204284</commentid>
    <comment_count>2</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2026-04-24 15:14:22 -0700</bug_when>
    <thetext>Hello, thank you for the report and repro. This bug is due to WebKit not implementing support for transformed anchor. We&apos;re currently implementing it as we speak, and I can confirm the repro will work with the patch in bug 313104.

*** This bug has been marked as a duplicate of bug 313104 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>478325</attachid>
            <date>2026-02-12 01:53:21 -0800</date>
            <delta_ts>2026-02-12 01:53:21 -0800</delta_ts>
            <desc>A code example of how anchored items position themselves with differently positioned parents</desc>
            <filename>transform-anchor.html</filename>
            <type>text/html</type>
            <size>1338</size>
            <attacher>hello</attacher>
            
              <data encoding="base64">PGh0bWw+Cgk8aGVhZD4KCQk8c3R5bGU+CQkKCQkJdWwgewoJCQkJcG9zaXRpb24tYXJlYTogYmxv
Y2stZW5kIHNwYW4taW5saW5lLWVuZDsKCQkJCXBvc2l0aW9uLXRyeTogZmxpcC1ibG9jazsKCQkJ
CXBvc2l0aW9uOiBhYnNvbHV0ZTsKCQkJfQoJCQkKCQkJI3JlbGF0aXZlIHsKCQkJCWJvcmRlcjog
MXB4IHNvbGlkIHJlZDsKCQkJCXdpZHRoOiAyMDBweDsKCQkJCWhlaWdodDogMTAwJTsKCQkJfQoJ
CQkKCQkJI2Fic29sdXRlIHsKCQkJCWJvcmRlcjogMXB4IHNvbGlkIGdyZWVuOwoJCQkJd2lkdGg6
IDIwMHB4OwoJCQkJaGVpZ2h0OiAxMDAlOwoJCQkJcG9zaXR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