|
@@ -37,4 +37,16 @@ HTMLMarqueeElement::~HTMLMarqueeElement()
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+void HTMLMarqueeElement::apply_presentational_hints(CSS::StyleProperties& style) const
|
|
|
+{
|
|
|
+ HTMLElement::apply_presentational_hints(style);
|
|
|
+ for_each_attribute([&](auto& name, auto& value) {
|
|
|
+ if (name == HTML::AttributeNames::bgcolor) {
|
|
|
+ auto color = Color::from_string(value);
|
|
|
+ if (color.has_value())
|
|
|
+ style.set_property(CSS::PropertyID::BackgroundColor, CSS::ColorStyleValue::create(color.value()));
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
}
|