Bug 184915

Summary: Text inside the block part of an IB split isn't affected by parent opacity.
Product: WebKit Reporter: Emilio Cobos Álvarez (:emilio) <emilio>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, bfulgham, simon.fraser, zalan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
testcase.html none

Description Emilio Cobos Álvarez (:emilio) 2018-04-24 07:59:16 PDT
Created attachment 338649 [details]
testcase.html

STR:

  Load the attached test-case.

Expected result:

  "Block" is grey, since it's inside a parent with opacity: 0.2.

Actual result:

  "Block" is not affected by opacity.

I _think_ Firefox and Edge are right on this one, but I'm not confident about how stacking contexts and IB splits interact to be 100% sure.
Comment 1 Emilio Cobos Álvarez (:emilio) 2018-04-24 09:43:08 PDT
https://lists.w3.org/Archives/Public/www-style/2011May/0710.html

and 

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

Look relevant here...
Comment 2 Emilio Cobos Álvarez (:emilio) 2018-04-24 11:10:45 PDT
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:

> 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't matter whether the spec refers to box or element tree, opacity should apply to the block.
Comment 3 Ahmad Saleem 2023-03-17 16:50:42 PDT
I am able to reproduce this bug in WebKit ToT as well based of (261811@main), it is still ‘Block’ does not have opacity.