WICG / layout-instability

A proposal for a Layout Instability specification
https://wicg.github.io/layout-instability/
Other
158 stars 27 forks source link

Clarify opacity and visibility in spec #91

Closed npm1 closed 3 years ago

npm1 commented 3 years ago

We should not consider a node unstable if its computed visibility or opacity are hidden/0 in the frame or previous frame.

Addresses https://github.com/WICG/layout-instability/issues/61


Preview | Diff

npm1 commented 3 years ago

By the way, do we need to add more tests or do the existing ones cover all of these cases? For instance:

npm1 commented 3 years ago

Based on briefly looking at tests, we're missing the two cases above where visible becomes invisible. I will add a couple of tests.