Closed Bug 1689911 Opened 5 years ago Closed 2 years ago

[wpt-sync] Sync PR 27418 - [Request for opinions] Ignore appearing/disappearing for layout shift

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 27418 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/27418
Details from upstream follow.

b'Xianzhu Wang <wangxianzhu@chromium.org>' wrote:

[Request for opinions] Ignore appearing/disappearing for layout shift

This changes existing behavior, so I'm uploading this to collect
opinions.

I created this CL because

  1. We need to ignore layout shift for previously clipped contents
    (see the bug), though this doesn't fully work yet.

  2. For the following cases, we can create test cases with no difference
    in user experience:
    a) an element is out of view, then is shifted into view;
    b) an element is out of the visible area of an overflow:hidden
    container, then is scrolled into view;
    c) an element is newly created;
    d) an element changes visibility from hidden to visible;
    e) an empty element adds contents;
    etc.
    It doesn't seem reasonble to report layout shift for a) only.

Bug: 1159565
Change-Id: If0603a10a3390d2d30f1b46f8faa55484f9593a5
Reviewed-on: https://chromium-review.googlesource.com/2660514
WPT-Export-Revision: 89afb81a3a1e68c813222d8a80eb99fc30050d85

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.