Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 7cdf5db

Browse files
committed
Add CSS Font Loader
1 parent 57780fa commit 7cdf5db

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

scripts/9/data.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,6 +2194,15 @@ var tests = [
21942194
status: 'stable',
21952195
name: 'Resource Loading',
21962196
items: [
2197+
{
2198+
id: 'fontloader',
2199+
name: 'Font Loader API',
2200+
value: 1,
2201+
urls: [
2202+
[ 'w3c', 'https://www.w3.org/TR/css-font-loading/' ]
2203+
]
2204+
},
2205+
21972206
'<strong>Resource hints</strong>',
21982207

21992208
{

scripts/9/engine.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,16 @@ Test9 = (function () {
22722272
},
22732273

22742274

2275+
/* font loader */
2276+
2277+
function (results) {
2278+
results.addItem({
2279+
key: 'resource.fontloader',
2280+
passed: document.fonts && 'FontFace' in window
2281+
});
2282+
},
2283+
2284+
22752285
/* webworker */
22762286

22772287
function (results) {

0 commit comments

Comments
 (0)