mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
LibWeb: Add start
and end
values to text-align
The `start` and `end` value set the text alignment based on the computed value of `direction`. The default value of `text-align` is now `start` instead of `left`.
This commit is contained in:
parent
82989554ab
commit
1537d589ca
Notes:
github-actions[bot]
2024-08-13 14:20:44 +00:00
Author: https://github.com/BenJilks
Commit: 1537d589ca
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1060
Reviewed-by: https://github.com/AtkinsSJ ✅
8 changed files with 51 additions and 12 deletions
|
@ -104,7 +104,7 @@ public:
|
|||
static CSS::ContentVisibility content_visibility() { return CSS::ContentVisibility::Visible; }
|
||||
static CSS::Cursor cursor() { return CSS::Cursor::Auto; }
|
||||
static CSS::WhiteSpace white_space() { return CSS::WhiteSpace::Normal; }
|
||||
static CSS::TextAlign text_align() { return CSS::TextAlign::Left; }
|
||||
static CSS::TextAlign text_align() { return CSS::TextAlign::Start; }
|
||||
static CSS::TextJustify text_justify() { return CSS::TextJustify::Auto; }
|
||||
static CSS::Positioning position() { return CSS::Positioning::Static; }
|
||||
static CSS::TextDecorationLine text_decoration_line() { return CSS::TextDecorationLine::None; }
|
||||
|
|
|
@ -390,6 +390,8 @@
|
|||
"text-align": [
|
||||
"center",
|
||||
"justify",
|
||||
"start",
|
||||
"end",
|
||||
"left",
|
||||
"right",
|
||||
"-libweb-center",
|
||||
|
|
|
@ -2470,7 +2470,7 @@
|
|||
"text-align": {
|
||||
"animation-type": "discrete",
|
||||
"inherited": true,
|
||||
"initial": "left",
|
||||
"initial": "start",
|
||||
"valid-types": [
|
||||
"text-align"
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue