<?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>314085</bug_id>
          
          <creation_ts>2026-05-05 07:02:02 -0700</creation_ts>
          <short_desc>mathml/relations/html5-tree/href-click-004.tentative.html is failing for annotation/annotation-xml element</short_desc>
          <delta_ts>2026-05-05 07:02:02 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>314084</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eri</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2207650</commentid>
    <comment_count>0</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2026-05-05 07:02:02 -0700</bug_when>
    <thetext>See https://searchfox.org/wubkat/rev/68f2a0d2a5f6fc91cbfb573ccf94fceaaa2f162c/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative-expected.txt#2

This test perform a click on annotation/annotation-xml elements with a href, to check the href attribute has no effect. But the test runner is enabled to execute the click and returns a promise failure: Unhandled rejection with value: object &quot;Error: element click intercepted error&quot; 

Note that the test uses the following rules:

  annotation, annotation-xml { display: initial; }
  .element { background: lightblue; padding: 50px; }

to avoid the default display: none and empty size, but that don&apos;t seem enough.

As explained in bug 314084, the annotation/annotation-xml rendering seems quite broken, and nothing will be rendered in that case.

That won&apos;t be the proper way to solve this, but it&apos;s worth mentioning that tweaking the test to set an opacity on the annotations makes them visible, and the test passes:

diff --git a/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative.html b/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative.html
index 764222dd1f..5e84fa85ca 100644
--- a/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative.html
+++ b/LayoutTests/imported/w3c/web-platform-tests/mathml/relations/html5-tree/href-click-004.tentative.html
@@ -13,7 +13,7 @@
 &lt;style&gt;
   annotation, annotation-xml { display: initial; }
   mphantom { visibility: visible; }
-  .element { background: lightblue; padding: 50px; }
+  .element { background: lightblue; padding: 50px; opacity: .9; }
 &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>