mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
style: Update font-style to css-fonts-4.
Bug: 1455358 Reviewed-by: xidorn MozReview-Commit-ID: 1Nq5DyCjaZe
This commit is contained in:
parent
f7636e6662
commit
32d4da8a99
11 changed files with 361 additions and 63 deletions
|
@ -363,8 +363,6 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
use properties::longhands::font_weight::computed_value::T as FontWeight;
|
||||
if self.style.get_font().clone__moz_math_variant() != MozMathVariant::None {
|
||||
let font_style = self.style.mutate_font();
|
||||
// Sadly we don't have a nice name for the computed value
|
||||
// of "font-weight: normal".
|
||||
font_style.set_font_weight(FontWeight::normal());
|
||||
font_style.set_font_style(FontStyle::Normal);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue