Closed
Bug 1367301
Opened 8 years ago
Closed 8 years ago
stylo: -moz-math-variant needs to override font-weight and font-style
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bzbarsky, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
5.29 KB,
patch
|
Details | Diff | Splinter Review |
nsRuleNode::SetFont has:
if (aFont->mMathVariant != NS_MATHML_MATHVARIANT_NONE) {
// -moz-math-variant overrides font-style
aFont->mFont.style = NS_FONT_STYLE_NORMAL;
} else {
// normal font-style computation
}
and
if (aFont->mMathVariant != NS_MATHML_MATHVARIANT_NONE) {
// -moz-math-variant overrides font-weight
aFont->mFont.weight = NS_FONT_WEIGHT_NORMAL;
} else if (eCSSUnit_Enumerated == weightValue->GetUnit()) {
// normal font-weight computation
}
but we don't seem to have a servo equivalent. This is causing the layout/reftests/mathml/mathvariant-3.html test failure.
| Reporter | ||
Comment 1•8 years ago
|
||
I guess we either need to put -moz-math-variant in the "computed early" properties that hang off the Context via its StyleBuilder, or we need to do some sort of after-the-fact fixup, right?
Comment 2•8 years ago
|
||
This feels like an after the fact fixup. Emilio added a framework for these
| Reporter | ||
Comment 3•8 years ago
|
||
| Reporter | ||
Comment 4•8 years ago
|
||
https://github.com/servo/servo/pull/17026 will fix using fixup.
| Reporter | ||
Comment 5•8 years ago
|
||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•