Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Make code compatible with Trusted Types. #36998

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/web_ui/lib/src/engine/text/font_collection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class _PolyfillFontManager extends FontManager {
.join(' ');
final DomHTMLStyleElement fontLoadStyle = DomHTMLStyleElement();
fontLoadStyle.type = 'text/css';
fontLoadStyle.innerHtml = '@font-face { $fontFaceDeclaration }';
fontLoadStyle.text = '@font-face { $fontFaceDeclaration }';
domDocument.head!.append(fontLoadStyle);

// HACK: If this is an icon font, then when it loads it won't change the
Expand Down