mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 07:20:46 +00:00
LibWeb: Add parsing and application of CSS "overflow" property
We don't actually do anything with the values yet, but now they are available for layout nodes once we are ready to implement them.
This commit is contained in:
parent
42f582bf8b
commit
21371bf6ee
Notes:
sideshowbarker
2024-07-18 22:00:39 +09:00
Author: https://github.com/awesomekling
Commit: 21371bf6ee
8 changed files with 85 additions and 0 deletions
|
@ -243,6 +243,12 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope
|
|||
return;
|
||||
}
|
||||
|
||||
if (property_id == CSS::PropertyID::Overflow) {
|
||||
style.set_property(CSS::PropertyID::OverflowX, value);
|
||||
style.set_property(CSS::PropertyID::OverflowY, value);
|
||||
return;
|
||||
}
|
||||
|
||||
if (property_id == CSS::PropertyID::Border) {
|
||||
set_property_expanding_shorthands(style, CSS::PropertyID::BorderTop, value, document);
|
||||
set_property_expanding_shorthands(style, CSS::PropertyID::BorderRight, value, document);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue