mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:38:10 +00:00
LibWeb: Add -libweb-left and -libweb-right text-align values
These ensure that block level elements are also left and right aligned respectively on top of the regular text alignment, matching -libweb-center.
This commit is contained in:
parent
7302f8838c
commit
4ac7c41483
4 changed files with 10 additions and 1 deletions
|
@ -180,9 +180,11 @@ void LineBuilder::update_last_line()
|
|||
x_offset += excess_horizontal_space / 2;
|
||||
break;
|
||||
case CSS::TextAlign::Right:
|
||||
case CSS::TextAlign::LibwebRight:
|
||||
x_offset += excess_horizontal_space;
|
||||
break;
|
||||
case CSS::TextAlign::Left:
|
||||
case CSS::TextAlign::LibwebLeft:
|
||||
case CSS::TextAlign::Justify:
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue