Transform property does not work in Firefox but does in Chrome and Safari. What to do?
Categories
(Core :: Web Painting, defect, P3)
Tracking
()
People
(Reporter: john.morsey.007, Unassigned)
References
()
Details
(Keywords: parity-chrome, parity-safari, testcase)
| Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
| Reporter | ||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
| Reporter | ||
Comment 5•7 years ago
|
||
Comment 6•6 years ago
|
||
I'm not really sure how to copy Safari/Chrome here, as their behaviour appears to be dependent on internal implementation details (that differ between browsers).
backface-visibility:hidden doesn't create a stacking context, and isn't an inherited property, so in your testcase I'd expect the backface of the "card__face card__face--front" element to be hidden, but not the backface of the img element inside it.
Chrome and Safari are both hiding the backface of the inner image, and I don't see why.
It gets extra interesting if you add a new sibling to the img, something like "<div style="transform:rotateX(2deg) perspective(1000px); background-color:blue; width:100px; height:100px;></div>"
Chrome doesn't hide the backface of this new element. I believe that's because the 3d transform promotes it to a new compositing layer, and as the element doesn't have backface-visibility:hidden (only its parent does), then it doesn't get the attribute to be hidden.
We really need to get spec clarification, since we can't easily copy chrome's compositing layer heuristics.
Updated•3 years ago
|
Comment 8•1 year ago
|
||
Based on comment #4, this is a duplicate of bug 1201471, so I'm closing it as such, and moving the P3 priority and parity flags over to that bug.
Description
•