<?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>291434</bug_id>
          
          <creation_ts>2025-04-11 10:10:11 -0700</creation_ts>
          <short_desc>display: none on shadow DOM elements computed incorrectly</short_desc>
          <delta_ts>2025-07-29 07:51: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>CSS</component>
          <version>Safari 18</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>148695</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Clough">cluffpost</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>cluffpost</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2110459</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Clough">cluffpost</who>
    <bug_when>2025-04-11 10:10:11 -0700</bug_when>
    <thetext>Overview:

Some selectors which result in an element toggling between `display: none` and `display: block` in the light DOM, do not render correctly once toggled to `display: block` and back to `display: none` in a shadow DOM.

Reproduction/Demo:
https://codepen.io/mattclough/pen/LEYwEmz

Expected Results:

Rendered elements with an active style rule `display: none` should always be hidden.

Build Date &amp; Hardware:

Build 20621.1.15.11.10 on macOS Sequoia 15.4 (24E248)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2111826</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-04-18 10:11:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/149558587&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>