From bdbc3f4f6eabc6f821bc0ea2acb636d6eeb930ab Mon Sep 17 00:00:00 2001 From: ldm0 Date: Thu, 24 Sep 2026 00:42:02 +0800 Subject: [PATCH] fix(fonts): validate font set queries with Stylo --- moli-core/tests/scripts/font_loading.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moli-core/tests/scripts/font_loading.rs b/moli-core/tests/scripts/font_loading.rs index ea784909a8a..e268285d3d0 100644 --- a/moli-core/tests/scripts/font_loading.rs +++ b/moli-core/tests/scripts/font_loading.rs @@ -17,6 +17,11 @@ async fn font_faces_enforce_document_csp_before_initial_and_redirect_requests() run_font_probe(include_str!("../fixtures/font-csp.js"), 4).await } +#[tokio::test(flavor = "multi_thread")] +async fn font_face_sets_validate_load_and_check_queries_with_css_shorthand_syntax() -> Result<()> { + run_font_probe(include_str!("../fixtures/font-query.js"), 24).await +} + async fn run_font_probe(probe: &str, count: usize) -> Result<()> { run_font_probe_with_argument(probe, count, None).await }