<?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>263834</bug_id>
          
          <creation_ts>2023-10-28 14:41:44 -0700</creation_ts>
          <short_desc>HTML dialog ::backdrop ignores all CSS variables</short_desc>
          <delta_ts>2025-03-14 11:08:16 -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>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=289800</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>GoodFirstBug, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>263838</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wes">wes</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>fotis.papadogeorgopoulos</cc>
    
    <cc>ntim</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1988242</commentid>
    <comment_count>0</comment_count>
    <who name="Wes">wes</who>
    <bug_when>2023-10-28 14:41:44 -0700</bug_when>
    <thetext>The spec was updated so that ::backdrop should inherit from originating element.  This will allow CSS variables to work properly in ::backdrop selectors.  See existing WPT for test case: https://wpt.fyi/results/html/semantics/interactive-elements/the-dialog-element/backdrop-inherits.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1988287</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-10-28 21:43:44 -0700</bug_when>
    <thetext>https://searchfox.org/wubkat/rev/85e40ad30a15e2dfcda4ebad64ed7f41292908a4/Source/WebCore/rendering/updating/RenderTreeUpdaterGeneratedContent.cpp#203-204

Should be as easy as changing `&amp;renderer.view().style()` to `&amp;renderer.style()` on that line (and the related comment).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1988492</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-30 07:54:46 -0700</bug_when>
    <thetext>I think Keith has fix for this in his local branch:

https://github.com/keithamus/WebKit/commit/09077ac5976fea157c74dd161c7e49f511157477#diff-7f18480073b63da9fd4d75c26e4e35d003a101498030d45587ab9b5241b2e2bf

It just needs to be push on WebKit origin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1988697</commentid>
    <comment_count>3</comment_count>
    <who name="Keith Cirkel">webkit</who>
    <bug_when>2023-10-30 16:23:50 -0700</bug_when>
    <thetext>Yep I&apos;ve got a patch. I&apos;m first resyncing the web platform tests for dialog (see https://bugs.webkit.org/show_bug.cgi?id=263838 &amp; https://github.com/WebKit/WebKit/pull/19682).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989997</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-04 14:42:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/117949961&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990041</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-05 08:33:49 -0800</bug_when>
    <thetext>Committed 270246@main (d23e04b12f79): &lt;https://commits.webkit.org/270246@main&gt;

Reviewed commits have been landed. Closing PR #20007 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>