diff --git a/core/src/html/text_format.rs b/core/src/html/text_format.rs
index 1c131482e94b..592ab23e478f 100644
--- a/core/src/html/text_format.rs
+++ b/core/src/html/text_format.rs
@@ -726,6 +726,8 @@ impl FormatSpans {
format.align = Some(swf::TextAlign::Center)
} else if align == WStr::from_units(b"right") {
format.align = Some(swf::TextAlign::Right)
+ } else if align == WStr::from_units(b"justify") {
+ format.align = Some(swf::TextAlign::Justify)
}
}
}