From 45e5a25370fc4fe0df00ac2f15589092ab24229b Mon Sep 17 00:00:00 2001 From: NetterSilver <133535268+Silvertree2010@users.noreply.github.com> Date: Sat, 31 Oct 2026 15:37:13 +0100 Subject: [PATCH] Escape backslashes and line breaks in CSS font-family export (#1752) * Escape backslashes and line breaks in CSS font-family export Found while testing crates/engine/src/dev/codegen/css.rs:223 (text_decls, the font-family put) Co-Authored-By: Claude Haiku 5.5 Co-Authored-By: Claude Sonnet 5.5 * Escape quotes and < in CSS font-family export A double quote in a family name is escaped instead of turned into a single quote (CodeRabbit on #1752), and < is written as \3C so a name can't end the generated page's "})); + let css = crate::codegen::css_decls(s.doc().unwrap(), s.doc().unwrap().node(t).unwrap(), &mut Default::default(), (true, true)); + assert!(css.contains(r#"font-family: "Foo\"\3C /style>";"#), "{css}"); +}