LibWeb: Implement <center> as -libweb-center

To get the expected behavior for <center>, we needed a special text
alignment mode that centers block-level elements (and not just line
box fragments.)
This commit is contained in:
Andreas Kling 2020-06-13 10:54:58 +02:00
commit 784ed004e6
Notes: sideshowbarker 2024-07-19 05:40:33 +09:00
6 changed files with 26 additions and 14 deletions

View file

@ -53,6 +53,8 @@ String IdentifierStyleValue::to_string() const
return "(invalid)";
case CSS::ValueID::VendorSpecificLink:
return "-libweb-link";
case CSS::ValueID::VendorSpecificCenter:
return "-libweb-center";
case CSS::ValueID::VendorSpecificPaletteDesktopBackground:
return "-libweb-palette-desktop-background";
case CSS::ValueID::VendorSpecificPaletteActiveWindowBorder1: