Bug 184915 - Text inside the block part of an IB split isn't affected by parent opacity.
Summary: Text inside the block part of an IB split isn't affected by parent opacity.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-24 07:59 PDT by Emilio Cobos Álvarez (:emilio)
Modified: 2024-09-07 17:52 PDT (History)
4 users (show)

See Also:


Attachments
testcase.html (224 bytes, text/html)
2018-04-24 07:59 PDT, Emilio Cobos Álvarez (:emilio)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.