mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add separate specified value for keyword font sizes
In Gecko, these keywords compute to different values depending on the font. See https://bugzilla.mozilla.org/show_bug.cgi?id=1341775
This commit is contained in:
parent
bb54f0a429
commit
c9198d92d5
6 changed files with 162 additions and 109 deletions
|
@ -478,7 +478,10 @@ impl LayoutElementHelpers for LayoutJS<Element> {
|
|||
if let Some(font_size) = font_size {
|
||||
hints.push(from_declaration(
|
||||
shared_lock,
|
||||
PropertyDeclaration::FontSize(font_size::SpecifiedValue(font_size.into()))))
|
||||
PropertyDeclaration::FontSize(
|
||||
font_size::SpecifiedValue::from_html_size(font_size as u8)
|
||||
)
|
||||
))
|
||||
}
|
||||
|
||||
let cellspacing = if let Some(this) = self.downcast::<HTMLTableElement>() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue