Repository navigation
tests: Use Ahem font provided by WPT harness. - #37054
Conversation
|
🔨 Triggering try run (#15136791303) for Linux (WPT) |
|
Test results for linux-wpt from try job (#15136791303): Flaky unexpected result (23)
Stable unexpected results that are known to be intermittent (15)
Stable unexpected results (2)
|
|
|
d47f613 to
1e5f443
Compare
|
🔨 Triggering try run (#15153984610) for Linux (WPT) |
|
Test results for linux-wpt from try job (#15153984610): Flaky unexpected result (25)
Stable unexpected results that are known to be intermittent (16)
|
|
✨ Try run (#15153984610) succeeded. |
|
As far as I can tell, these test failures occur because the ahem.css stylesheet is finished loading but layout does not actually have the font applied when checking the resulting layout. I see evidence of a large number of restyles occuring shortly after the test is finished checking layout properties. |
|
More specifically:
When I modify /fonts/ahem.css to add a 5s delay to the web font response ( This explanation tracks with why Safari's pass rate in https://wpt.fyi/results/css/css-align/blocks?label=master&label=experimental&aligned is so much lower than the other browsers, since that directory contains a lot of tests that use |
|
And of course https://html.spec.whatwg.org/multipage/infrastructure.html#critical-subresources calls out that web fonts' relation to critical subresources are undefined; see w3c/csswg-drafts#1088. |
Signed-off-by: Josh Matthews <[email protected]>
|
For tests like /css/css-lists/nested-marker-dynamic.html and /css/selectors/invalidation/negated-last-of-type-invalidation.html which do not have any explicit ahem font usage, I have a theory that the intermittent failures are triggered by the removal of Before these changes, every single test page loaded in Servo would include a |
|
🔨 Triggering try run (#15266256964) for Linux (WPT) |
|
Test results for linux-wpt from try job (#15266256964): Flaky unexpected result (21)
Stable unexpected results that are known to be intermittent (25)
|
|
✨ Try run (#15266256964) succeeded. |
#37021 exposed that our tests are trying to load a local file path for Ahem.ttf, but this stops working when we implement the specified CORS protections for our font requests. Luckily, the WPT suite already provides a same-origin version of the same font, so we can just update our CSS to use that font face instead. Testing: Existing WPT coverage. Signed-off-by: Josh Matthews <[email protected]>
#37021 exposed that our tests are trying to load a local file path for Ahem.ttf, but this stops working when we implement the specified CORS protections for our font requests. Luckily, the WPT suite already provides a same-origin version of the same font, so we can just update our CSS to use that font face instead.
Testing: Existing WPT coverage.