mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 00:38:48 +00:00
LibWeb: Move the offset, margin and padding boxes into LayoutStyle
This commit is contained in:
parent
6b334e02e6
commit
4b2ac34725
Notes:
sideshowbarker
2024-07-19 05:24:23 +09:00
Author: https://github.com/awesomekling
Commit: 4b2ac34725
9 changed files with 66 additions and 79 deletions
|
@ -266,7 +266,7 @@ NonnullRefPtr<StyleValue> parse_css_value(const StringView& string)
|
|||
auto number = parse_number(string);
|
||||
if (number.has_value()) {
|
||||
if (string.ends_with('%'))
|
||||
return PercentageStyleValue::create(number.value());
|
||||
return LengthStyleValue::create(Length(number.value(), Length::Type::Percentage));
|
||||
if (string.ends_with("em"))
|
||||
return LengthStyleValue::create(Length(number.value(), Length::Type::Em));
|
||||
if (string.ends_with("rem"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue