私はセマンティックUIを使用しており、cssプロパティで未定義の動作を絞り込むことができwill-change
ました(モーダルで見つけました):
.outer{
background-color: black;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
.inner{
position:absolute;
background-color: white;
left: 50%;
top: 100px;
width: 400px;
margin-left: -200px;
height: 100px;
padding: 5px;
/**
* comment out the line below
* to see the desired/different result
**/
will-change: transform;
}
.baby{
color: yellow;
position: fixed;
left: 20px;
top: 20px;
right: 0;
border: 1px solid red;
}
<div class="outer">
<div class="inner">
<div class="baby">here</div>
<div class="content">some content</div>
</div>
</div>
これはクロムでのみテストしました。ここで何が起こっているかについて、もっと詳しい情報を持っている人はいますか? will-change
実際のレイアウトに対して何かを行うのはなぜですか?