Closed Bug 2024939 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 58544 - layout: Fix `first-paint` detection

Categories

(Core :: DOM: Performance APIs, task, P4)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Shubham Gupta <shubham.gupta@chromium.org> wrote:

layout: Fix first-paint detection

This PR comprises

  1. Segregate paintable and contentful.
  2. Adds Checking of non-default background for eligibility to mark first-paint.
  3. Adds a bool is_paintable to display_list and use same for marking first-paint.

TODO: This doesn't consider iframes. Will add PR after fixing WPT tests.

Raised an issue for some incomplete definitions: https://github.com/w3c/paint-timing/issues/122

Testing:

  • wpt/tests/paint-timing/first-paint-only/first-paint-bg-color.html
  • Updated WPT tests expectations.
    • wpt/paint-timing/first-image-child.html
    • wpt/paint-timing/first-paint-only/sibling-painting-first-image.html
  • Unit Test: servo/tests/performance_paint_timings.rs. Following Tests Cases are covered:
Background Pref Root Background FP TC
Default Unset :x: test_default_pref_with_unset_background
Non-Default Unset :x: test_non_default_pref_with_unset_background
Default Transparent :x: test_default_pref_with_transparent_background
Non-Default Unset :x: test_non_default_pref_with_transparent_background
Default Set :white_check_mark: test_default_pref_with_background
Non-Default Set :white_check_mark: test_non_default_pref_with_background
Non-Default Set (same as pref) :x: test_non_default_pref_with_same_background

Fixes: #<!-- nolink -->42148

Reviewed in servo/servo#42975

Component: web-platform-tests → DOM: Performance APIs
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 4 tests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.