The 'back' face of the card has arotateY(180deg)
set on it. Both faces havebackface-visibility: hidden
set. Setting overflow: hidden on their parent (the card) causes the 3D transformed face ('back' face) to disappear andbackface-visibility: hidden
to be ignored for the other.
From the spec (link):
The following CSS property values require the user agent to create a flattened representation of the descendant elements before they can be applied, and therefore override the behavior oftransform-style: preserve-3d
:
overflow
: any value other thanvisible
.
filter
: any value other thannone
.
clip
: any value other thanauto
.
clip-path
: any value other thannone
.
isolation
: used value ofisolate
.
mask-image
: any value other thannone
.
mask-box-source
: any value other thannone
.
mix-blend-mode: any value other than normal.
The computed value oftransform-style
is not affected.
新闻热点
疑难解答