mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 08:48:49 +00:00
LibWeb: Support cellspacing attribute on table elements
This commit is contained in:
parent
4314ed72e6
commit
4805447c22
Notes:
sideshowbarker
2024-07-17 05:18:58 +09:00
Author: https://github.com/warpdesign
Commit: 4805447c22
Pull-request: https://github.com/SerenityOS/serenity/pull/19810
Issue: https://github.com/SerenityOS/serenity/issues/19807
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ void HTMLTableElement::apply_presentational_hints(CSS::StyleProperties& style) c
|
|||
style.set_property(CSS::PropertyID::BackgroundColor, CSS::ColorStyleValue::create(color.value()).release_value_but_fixme_should_propagate_errors());
|
||||
return;
|
||||
}
|
||||
if (name == HTML::AttributeNames::cellspacing) {
|
||||
if (auto parsed_value = parse_dimension_value(value))
|
||||
style.set_property(CSS::PropertyID::BorderSpacing, parsed_value.release_nonnull());
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue