From ddaa08bb676adb2b173f85bf2dd88dcfb8e103e5 Mon Sep 17 00:00:00 2001 From: Xiaocheng Hu Date: Wed, 4 Aug 2021 13:39:41 -0700 Subject: [PATCH] Minor fixing to WPT css/css-fonts/fallback-remote-to-data-url.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. The font style is also applied to element non-target so that we can verify the effect of unicode-range on data-font 2. Added 'font-display: swap' to remote-font so that we can observe the fallback when loading remote-font Bug: 897539 Change-Id: I9bbe0705bc7d3a9ebbaf92f2c8c26c557adec24a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3069529 Commit-Queue: Xiaocheng Hu Auto-Submit: Xiaocheng Hu Reviewed-by: Dominik Röttsches Cr-Commit-Position: refs/heads/master@{#908594} --- css/css-fonts/fallback-remote-to-data-url.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/css/css-fonts/fallback-remote-to-data-url.html b/css/css-fonts/fallback-remote-to-data-url.html index 2f63312494e772..eb3df63ac421e5 100644 --- a/css/css-fonts/fallback-remote-to-data-url.html +++ b/css/css-fonts/fallback-remote-to-data-url.html @@ -21,14 +21,15 @@ font-family: remote-font; /* Set a long delay to make sure it doesn't finish loading */ src: url('/fonts/Revalia.woff?pipe=trickle(d1)') format('woff'); + font-display: swap; } -#target { +#target, #not-covered { font: 25px/1 remote-font, data-font, monospace; } 0123456789 -ABCDEFGHIJ +ABCDEFGHIJ