1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 22:47:45 +00:00

LibWeb: Add list-style-type: lower-alpha and lower-latin support

They achieve the same, a list which markers are lowercase (latin)
characters.
This commit is contained in:
Tobias Christiansen 2021-04-22 23:39:18 +02:00 committed by Andreas Kling
parent 7dd0fb0086
commit cb34775c83
4 changed files with 15 additions and 0 deletions

View file

@ -104,6 +104,8 @@
"line-through",
"list-item",
"lowercase",
"lower-alpha",
"lower-latin",
"medium",
"move",
"ne-resize",

View file

@ -578,6 +578,10 @@ Optional<CSS::ListStyleType> StyleProperties::list_style_type() const
return CSS::ListStyleType::Decimal;
case CSS::ValueID::DecimalLeadingZero:
return CSS::ListStyleType::DecimalLeadingZero;
case CSS::ValueID::LowerAlpha:
return CSS::ListStyleType::LowerAlpha;
case CSS::ValueID::LowerLatin:
return CSS::ListStyleType::LowerLatin;
default:
return {};
}

View file

@ -160,6 +160,8 @@ enum class ListStyleType {
Square,
Decimal,
DecimalLeadingZero,
LowerAlpha,
LowerLatin,
};
enum class Overflow : u8 {