From dfae9986058a2194317f9b132f3162dbdae9f34d Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Tue, 30 Sep 2025 14:33:43 +0200 Subject: [PATCH 1/3] Pin paint timing and add missing keys --- features/paint-timing.yml | 11 +++++++++++ features/paint-timing.yml.dist | 16 ++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/features/paint-timing.yml b/features/paint-timing.yml index e768770a69f..da11a22fdae 100644 --- a/features/paint-timing.yml +++ b/features/paint-timing.yml @@ -2,7 +2,18 @@ name: Paint timing description: The `paint` performance entry and the `PerformancePaintTiming` API measures the duration of "paint" (also called "render") operations as a page loads. The API measures the time to First Paint (FP) and First Contentful Paint (FCP), common metrics for perceived loading times. spec: https://w3c.github.io/paint-timing/ group: performance +status: + compute_from: + - api.PerformancePaintTiming + - api.PerformancePaintTiming.first-contentful-paint compat_features: - api.PerformancePaintTiming - api.PerformancePaintTiming.first-contentful-paint + - api.PerformancePaintTiming.toJSON + + # first-paint isn't used in compute_from because user agents don't always report it, per spec. - api.PerformancePaintTiming.first-paint + + # More recent additions which could be tracked separately if needed. + - api.PerformancePaintTiming.paintTime + - api.PerformancePaintTiming.presentationTime diff --git a/features/paint-timing.yml.dist b/features/paint-timing.yml.dist index 5127aab9f16..87af4bbc27b 100644 --- a/features/paint-timing.yml.dist +++ b/features/paint-timing.yml.dist @@ -3,7 +3,11 @@ status: baseline: false - support: {} + support: + firefox: "84" + firefox_android: "84" + safari: "14.1" + safari_ios: "14.5" compat_features: # baseline: high # baseline_low_date: 2021-04-26 @@ -17,7 +21,9 @@ compat_features: # safari: "14.1" # safari_ios: "14.5" - api.PerformancePaintTiming + - api.PerformancePaintTiming.toJSON + # ⬇️ Same status as overall feature ⬇️ # baseline: false # support: # firefox: "84" @@ -26,7 +32,13 @@ compat_features: # safari_ios: "14.5" - api.PerformancePaintTiming.first-contentful-paint - # ⬇️ Same status as overall feature ⬇️ + # baseline: false + # support: + # firefox: "140" + # firefox_android: "140" + - api.PerformancePaintTiming.paintTime + - api.PerformancePaintTiming.presentationTime + # baseline: false # support: {} - api.PerformancePaintTiming.first-paint From 295333f91cda6c0c91aa8534ad965cfb0d01ce46 Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Tue, 30 Sep 2025 15:35:28 +0200 Subject: [PATCH 2/3] leave painttime and presentationtime out of this PR --- features/paint-timing.yml | 10 +++------- features/paint-timing.yml.dist | 7 ------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/features/paint-timing.yml b/features/paint-timing.yml index da11a22fdae..ec8b0cf5bd6 100644 --- a/features/paint-timing.yml +++ b/features/paint-timing.yml @@ -4,16 +4,12 @@ spec: https://w3c.github.io/paint-timing/ group: performance status: compute_from: + # This is what developers want out of this API, and these are implemented in all browsers. - api.PerformancePaintTiming - api.PerformancePaintTiming.first-contentful-paint compat_features: - api.PerformancePaintTiming - api.PerformancePaintTiming.first-contentful-paint - api.PerformancePaintTiming.toJSON - - # first-paint isn't used in compute_from because user agents don't always report it, per spec. - - api.PerformancePaintTiming.first-paint - - # More recent additions which could be tracked separately if needed. - - api.PerformancePaintTiming.paintTime - - api.PerformancePaintTiming.presentationTime + # first-paint isn't part of compute_from because it's optional for user agents to report it. + - api.PerformancePaintTiming.first-paint \ No newline at end of file diff --git a/features/paint-timing.yml.dist b/features/paint-timing.yml.dist index 87af4bbc27b..959ca38155b 100644 --- a/features/paint-timing.yml.dist +++ b/features/paint-timing.yml.dist @@ -32,13 +32,6 @@ compat_features: # safari_ios: "14.5" - api.PerformancePaintTiming.first-contentful-paint - # baseline: false - # support: - # firefox: "140" - # firefox_android: "140" - - api.PerformancePaintTiming.paintTime - - api.PerformancePaintTiming.presentationTime - # baseline: false # support: {} - api.PerformancePaintTiming.first-paint From dc5992ba307d620d3ee0eb8e1ca09aadc5fee2b6 Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Tue, 30 Sep 2025 15:43:33 +0200 Subject: [PATCH 3/3] formatting --- features/paint-timing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/paint-timing.yml b/features/paint-timing.yml index ec8b0cf5bd6..8540fdbeede 100644 --- a/features/paint-timing.yml +++ b/features/paint-timing.yml @@ -12,4 +12,4 @@ compat_features: - api.PerformancePaintTiming.first-contentful-paint - api.PerformancePaintTiming.toJSON # first-paint isn't part of compute_from because it's optional for user agents to report it. - - api.PerformancePaintTiming.first-paint \ No newline at end of file + - api.PerformancePaintTiming.first-paint