Closed Bug 1937411 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 49698 - wpt: Fix flakiness in `vh_not_refreshing_on_chrome.html`

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Martin Robinson <mrobinson@igalia.com> wrote:

wpt: Fix flakiness in vh_not_refreshing_on_chrome.html

This test manually animates the height of an <iframe> that has content
which uses the vh unit. Each tick of the animation changes the height
by one pixel. Inside the <iframe> the element using vh units has a
transition applied, so every manual tick of the animation triggers a new
transition. The causes a pretty slow test execution.

This change improves vh_not_refreshing_on_chrome.html to remove
flakiness by making the test wait to start until after the <iframe> has
loaded and to increase the <iframe> height by 10 pixels instead of 1
when doing the manual animation. These changes make the test faster and
much less flaky in Servo.

It still times out, but that will be fixed in an upcoming change to
increase the consistency of <iframe> sizing.

In addition, the test is reformated a bit removing extraneous whitespace
and renamed to follow WPT naming conventions.

Fixes #<!-- nolink -->23385.
Fixes #<!-- nolink -->15570.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>

<!-- Please describe your changes on the following line: -->

Reviewed in servo/servo#34626

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d16bc2941b32 [wpt PR 49698] - wpt: Fix flakiness in `vh_not_refreshing_on_chrome.html`, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.