<?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>184915</bug_id>
          
          <creation_ts>2018-04-24 07:59:16 -0700</creation_ts>
          <short_desc>Text inside the block part of an IB split isn&apos;t affected by parent opacity.</short_desc>
          <delta_ts>2026-01-24 13:57:38 -0800</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=234690</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=287407</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Emilio Cobos Álvarez (:emilio)">emilio</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1417149</commentid>
    <comment_count>0</comment_count>
      <attachid>338649</attachid>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2018-04-24 07:59:16 -0700</bug_when>
    <thetext>Created attachment 338649
testcase.html

STR:

  Load the attached test-case.

Expected result:

  &quot;Block&quot; is grey, since it&apos;s inside a parent with opacity: 0.2.

Actual result:

  &quot;Block&quot; is not affected by opacity.

I _think_ Firefox and Edge are right on this one, but I&apos;m not confident about how stacking contexts and IB splits interact to be 100% sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1417176</commentid>
    <comment_count>1</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2018-04-24 09:43:08 -0700</bug_when>
    <thetext>https://lists.w3.org/Archives/Public/www-style/2011May/0710.html

and 

https://bugzilla.mozilla.org/show_bug.cgi?id=660682

Look relevant here...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1417199</commentid>
    <comment_count>2</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2018-04-24 11:10:45 -0700</bug_when>
    <thetext>So Mats Palmgren pointed out that recently the spec had been clarified around this in https://github.com/w3c/csswg-drafts/issues/1477#issuecomment-380771705:

&gt; In a block-in-inline split, the block is inside the inline in the box tree, and is a sibling of the two fragments of the inline in the fragment tree

So it doesn&apos;t matter whether the spec refers to box or element tree, opacity should apply to the block.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942196</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-03-17 16:50:42 -0700</bug_when>
    <thetext>I am able to reproduce this bug in WebKit ToT as well based of (261811@main), it is still ‘Block’ does not have opacity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058414</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-09-07 17:52:37 -0700</bug_when>
    <thetext>Is it same as? https://wpt.fyi/results/css/css-color/inline-opacity-float-child.html?label=master&amp;label=experimental&amp;aligned&amp;q=safari%3Afail%20chrome%3Apass%20firefox%3Apass</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174643</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2026-01-23 16:42:49 -0800</bug_when>
    <thetext>it works fine now in Safari Technology Preview 235. Might have progressed with `blocks-in-inline` work. I am marking this as `Configuration Changed`. @Alan - please correct me, if I am wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174785</commentid>
    <comment_count>6</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2026-01-24 13:57:38 -0800</bug_when>
    <thetext>yeah this has progressed with block-in-inline work. continuation must have confused some render layer logic.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>338649</attachid>
            <date>2018-04-24 07:59:16 -0700</date>
            <delta_ts>2018-04-24 10:44:43 -0700</delta_ts>
            <desc>testcase.html</desc>
            <filename>file_184915.txt</filename>
            <type>text/html</type>
            <size>224</size>
            <attacher name="Emilio Cobos Álvarez (:emilio)">emilio</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+DQo8bWV0YSBjaGFyc2V0PSJVVEYtOCI+DQo8c3R5bGU+DQpzcGFuIHsN
CiAgYm9yZGVyLXN0eWxlOiBzb2xpZDsgLyogSnVzdCBzbyB0aGVyZSdzIGFueXRoaW5nIG90aGVy
IHRoYW4gdGV4dCB0byByZW5kZXIgKi8NCiAgb3BhY2l0eTogMC4yOw0KfQ0KPC9zdHlsZT4NCjxz
cGFuPg0KICBJbmxpbmUNCiAgPGRpdj5CbG9jazwvZGl2Pg0KICBJbmxpbmUNCjwvc3Bhbj4=
</data>

          </attachment>
      

    </bug>

</bugzilla>