mirror of
https://github.com/servo/servo.git
synced 2025-07-28 09:40:33 +01:00
Use BorderSideWidth for outline-width
This commit is contained in:
parent
2c7fbb4b4c
commit
7da94d0880
13 changed files with 137 additions and 186 deletions
|
@ -646,7 +646,7 @@ impl LayoutElementHelpers for LayoutJS<Element> {
|
|||
};
|
||||
|
||||
if let Some(border) = border {
|
||||
let width_value = specified::BorderWidth::from_length(specified::Length::from_px(border as f32));
|
||||
let width_value = specified::BorderSideWidth::Length(specified::Length::from_px(border as f32));
|
||||
hints.push(from_declaration(
|
||||
shared_lock,
|
||||
PropertyDeclaration::BorderTopWidth(width_value.clone())));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue