Composition 단계에서 레이어가 분리되는 경우 vs 그렇지 않은 경우 vs 애매한 경우 #619
airman5573
started this conversation in
Today I Learned
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
레이어가 분리되는 확실한 경우
translate3d,translateZ등 3D 변환will-change: transform | opacity | filterfilter,backdrop-filter,mix-blend-mode,clip-pathopacity/transform애니메이션·트랜지션분리되지 않는 기본 케이스
opacityscale,rotatewidth,height,background-color등 레이아웃·페인트 속성will-change(예:will-change: width)애매한 케이스
opacity만 있을 때: 레이어 Xopacity+translateZ형제: 레이어 O가 될 수 있음 (스쿼싱 해제)opacity+will-change: opacity: 레이어 O (직접 승격 선언)contain: paint/isolation: isolate로 분리되면 외부 승격 영향 차단DevTools 확인 방법
Chrome
Layers패널에서 레이어 구성 확인.실험팁
contain: layout paint)로 나눠서 비교.Layer O / X / ?표기 + “DevTools에서 확인” 안내.실제예제: airman5573/fe-20s-interview#377
Beta Was this translation helpful? Give feedback.
All reactions