Add a second mode to align 'font-display:auto' timeline with LCP goal
This patch adds an "intervention-mode" parameter to feature
AlignFontDisplayAutoTimeoutWithLCPGoal, with two values "failure" and
"swap":
- "failure" is the existing behavior that moves all pending
'font-display: auto' fonts to the failure display period when
reaching the LCP limit
- "swap" is a new behavior the moves all those fonts to the swap
display period instead
This allows us to try out different intervention ideas more easily.
Bug: 1065508
Change-Id: I16fcd00588e3ece5596ea5e8d5354c69210d6909
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2163756
Reviewed-by: Chris Harrelson <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Commit-Queue: Xiaocheng Hu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#762611}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index d84f7dc..5236323 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -42,7 +42,7 @@
const char kAlignFontDisplayAutoTimeoutWithLCPGoalName[] =
"Align 'font-display: auto' timeout with LCP goal";
const char kAlignFontDisplayAutoTimeoutWithLCPGoalDescription[] =
- "Make all pending 'display: auto' web fonts enter the failure period "
+ "Make pending 'display: auto' web fonts enter the swap or failure period "
"immediately before reaching the LCP time limit (~2500ms), so that web "
"fonts do not become a source of bad LCP (Largest Contentful Paint).";