Skip to content

Commit

Permalink
Expose -moz-center-or-inherit for Servo (#74)
Browse files Browse the repository at this point in the history
This is used to implement the following HTML specification rule about
`<th>` elements:

 > User agents are expected to have a rule in their user agent style sheet
 > that matches th elements that have a parent node whose computed value
 > for the 'text-align' property is its initial value, whose declaration
 > block consists of just a single declaration that sets the 'text-align'
 > property to the value 'center'.

Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Oriol Brufau <[email protected]>
  • Loading branch information
mrobinson and Loirooriol authored Sep 12, 2024
1 parent e70c561 commit f1f1ce0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions style/values/specified/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ pub enum TextAlign {
/// Since selectors can't depend on the ancestor styles, we implement it with a
/// magic value that computes to the right thing. Since this is an
/// implementation detail, it shouldn't be exposed to web content.
#[cfg(feature = "gecko")]
#[parse(condition = "ParserContext::chrome_rules_enabled")]
MozCenterOrInherit,
}
Expand Down Expand Up @@ -496,7 +495,6 @@ impl ToComputedValue for TextAlign {
_ => parent,
}
},
#[cfg(feature = "gecko")]
TextAlign::MozCenterOrInherit => {
let parent = _context
.builder
Expand Down

0 comments on commit f1f1ce0

Please sign in to comment.