diff --git a/dom/html/nsGenericHTMLElement.cpp b/dom/html/nsGenericHTMLElement.cpp
index 403908f24fed..2c172342c641 100644
--- a/dom/html/nsGenericHTMLElement.cpp
+++ b/dom/html/nsGenericHTMLElement.cpp
@@ -1222,9 +1222,11 @@ bool nsGenericHTMLElement::ParseAlignValue(const nsAString& aString,
//----------------------------------------
static const nsAttrValue::EnumTable kTableHAlignTable[] = {
- {"left", StyleTextAlign::Left}, {"right", StyleTextAlign::Right},
- {"center", StyleTextAlign::Center}, {"char", StyleTextAlign::Char},
- {"justify", StyleTextAlign::Justify}, {nullptr, 0}};
+ {"left", StyleTextAlign::Left},
+ {"right", StyleTextAlign::Right},
+ {"center", StyleTextAlign::Center},
+ {"justify", StyleTextAlign::Justify},
+ {nullptr, 0}};
bool nsGenericHTMLElement::ParseTableHAlignValue(const nsAString& aString,
nsAttrValue& aResult) {
@@ -1238,7 +1240,6 @@ static const nsAttrValue::EnumTable kTableCellHAlignTable[] = {
{"left", StyleTextAlign::MozLeft},
{"right", StyleTextAlign::MozRight},
{"center", StyleTextAlign::MozCenter},
- {"char", StyleTextAlign::Char},
{"justify", StyleTextAlign::Justify},
{"middle", StyleTextAlign::MozCenter},
{"absmiddle", StyleTextAlign::Center},
diff --git a/layout/generic/nsLineLayout.cpp b/layout/generic/nsLineLayout.cpp
index a452568f57ff..31ecc6b6aaa1 100644
--- a/layout/generic/nsLineLayout.cpp
+++ b/layout/generic/nsLineLayout.cpp
@@ -3273,7 +3273,6 @@ void nsLineLayout::TextAlignLine(nsLineBox* aLine, bool aIsLastLine) {
}
case StyleTextAlign::Start:
- case StyleTextAlign::Char:
// Default alignment is to start edge so do nothing, except to apply
// any "reverse-hang" amount resulting from reversed-direction trailing
// space.
diff --git a/servo/components/style/values/specified/text.rs b/servo/components/style/values/specified/text.rs
index 75a97f042c85..f62cec05e5de 100644
--- a/servo/components/style/values/specified/text.rs
+++ b/servo/components/style/values/specified/text.rs
@@ -404,9 +404,6 @@ pub enum TextAlignKeyword {
Right,
Center,
Justify,
- #[css(skip)]
- #[cfg(feature = "gecko")]
- Char,
End,
#[parse(aliases = "-webkit-center")]
MozCenter,