WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
202576
Transforming element with parent background-color fails if iframe with z-index -1 present in DOM
https://bugs.webkit.org/show_bug.cgi?id=202576
Summary
Transforming element with parent background-color fails if iframe with z-inde...
Dag-Inge Aas
Reported
2019-10-04 02:09:53 PDT
Description: If an element has a parent with a background-color, and the element is transformed, the element does not behave as expected, and completely disappears in certain cases, should an iframe be present in the DOM which has a z-index of -1. This is not reproducible on older versions of iOS Safari. You can see the element if the background-color has an alpha channel. Steps to reproduce: - Navigate to
https://cdpn.io/daginge/debug/dybLjGg/wQAPozPYQEDr
on an iOS device - Observe that no text can be seen - Open
https://cdpn.io/daginge/debug/dybLjGg/wQAPozPYQEDr
on desktop Safari - Observe that text is there and mirrored Code:
https://codepen.io/daginge/pen/dybLjGg
Impact: Intercom messenger, which is present on a lot of pages, has a hidden iframe with z-index -1. When this iframe is added to the DOM, any element which is transformed will disappear if a parent has a background-color. This impacts us because we are dependent on Intercom for support, and run a video conferencing site which needs to transform the so called "self-view" 180deg on the Y-axis to avoid confusion when the user sees themselves. Workaround: If a parent element gets opacity 0.999 the issue disappears. We decided to add this on the affected component's wrapper so minimize other issues that might come from having the body SLIGHTLY less visible.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-10-06 17:45:15 PDT
<
rdar://problem/56022948
>
Simon Fraser (smfr)
Comment 2
2019-10-07 10:42:29 PDT
I can't view the test case ("This debug view expired").
Simon Fraser (smfr)
Comment 3
2019-10-07 10:44:21 PDT
Ah,
https://codepen.io/daginge/pen/dybLjGg
works. I can reproduce.
Dag-Inge Aas
Comment 4
2019-10-07 11:55:11 PDT
Yes, sorry about that. I wasn’t aware those expired :/
Simon Fraser (smfr)
Comment 5
2020-01-14 14:49:27 PST
Better test case:
https://codepen.io/smfr/pen/OJPwjJd
Simon Fraser (smfr)
Comment 6
2020-01-14 14:58:09 PST
We're depth-sorting the layer with the rotateY(180deg) with the layer used to paint the "foreground" (the section background), and they are coplanar, and it ends up sorting behind. The fix is to move it a bit in Z: transform: rotateY(180deg) translateZ(-1px);
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug