Closed Bug 1335574 Opened 6 years ago Closed 6 years ago
stylo: handle legacy CSS font size keywords and HTML font size values
bug 1330041 adds basic support for presentation attributes in Stylo. However, it just uses Servo's support for legacy font-size keywords (medium, x-large, numeric values, etc). Servo does a straightforward mapping to constants. This is not what we do in Gecko; the table is a bit more complicated, and depends on the "base size" of the font. We'll eventually want to copy this code over to Servo or call into it. The spec probably needs to be changed as well. : http://searchfox.org/mozilla-central/rev/4e0c5c460318fb9ef7d92b129ac095ce04bc4795/layout/style/nsRuleNode.cpp#3090-3150 : http://searchfox.org/mozilla-central/rev/4e0c5c460318fb9ef7d92b129ac095ce04bc4795/layout/style/nsRuleNode.cpp#3431-3432
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.