mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Implement <hr> element 'width' attribute
This commit is contained in:
parent
337066063a
commit
02a8e8dd16
8 changed files with 66 additions and 137 deletions
|
@ -390,6 +390,9 @@ impl LayoutElementHelpers for LayoutJS<Element> {
|
|||
this.get_width()
|
||||
} else if let Some(this) = self.downcast::<HTMLTableCellElement>() {
|
||||
this.get_width()
|
||||
} else if let Some(this) = self.downcast::<HTMLHRElement>() {
|
||||
// https://html.spec.whatwg.org/multipage/#the-hr-element-2:attr-hr-width
|
||||
this.get_width()
|
||||
} else {
|
||||
LengthOrPercentageOrAuto::Auto
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue