mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement <body>'s "text" attribute
This commit is contained in:
parent
26dd123310
commit
64f4835a4f
10 changed files with 63 additions and 145 deletions
|
@ -298,6 +298,9 @@ impl LayoutElementHelpers for LayoutJS<Element> {
|
|||
|
||||
let color = if let Some(this) = HTMLFontElementCast::to_layout_js(self) {
|
||||
(*this.unsafe_get()).get_color()
|
||||
} else if let Some(this) = HTMLBodyElementCast::to_layout_js(self) {
|
||||
// https://html.spec.whatwg.org/multipage/#the-page:the-body-element-20
|
||||
(*this.unsafe_get()).get_color()
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue