mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Adjust buttons computed display style
This commit is contained in:
parent
4bcb34d7a0
commit
f54793315c
Notes:
github-actions[bot]
2025-11-01 13:03:55 +00:00
Author: https://github.com/lpas
Commit: f54793315c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6481
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 41 additions and 20 deletions
|
|
@ -2350,6 +2350,7 @@ GC::Ptr<ComputedProperties> StyleComputer::compute_style_impl(DOM::AbstractEleme
|
|||
for (auto const& property : inline_style->properties())
|
||||
style->set_property(property.property_id, property.value);
|
||||
}
|
||||
abstract_element.element().adjust_computed_style(style);
|
||||
return style;
|
||||
}
|
||||
|
||||
|
|
@ -2603,7 +2604,8 @@ GC::Ref<ComputedProperties> StyleComputer::compute_properties(DOM::AbstractEleme
|
|||
compute_text_align(computed_style, abstract_element);
|
||||
|
||||
// 8. Let the element adjust computed style
|
||||
abstract_element.element().adjust_computed_style(computed_style);
|
||||
if (!abstract_element.pseudo_element().has_value())
|
||||
abstract_element.element().adjust_computed_style(computed_style);
|
||||
|
||||
// 9. Transition declarations [css-transitions-1]
|
||||
// Theoretically this should be part of the cascade, but it works with computed values, which we don't have until now.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue