-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`.
- Loading branch information
Showing
8 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Tests/LibWeb/Layout/expected/writing-modes-direction-inline.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (0,0) content-size 800x33 [BFC] children: not-inline | ||
BlockContainer <body> at (8,8) content-size 784x17 children: inline | ||
frag 0 from TextNode start: 0, length: 1, rect: [737,8 8x17] baseline: 13.296875 | ||
" " | ||
InlineNode <span> | ||
frag 0 from TextNode start: 0, length: 5, rect: [690,8 46.71875x17] baseline: 13.296875 | ||
"aaaaa" | ||
TextNode <#text> | ||
TextNode <#text> | ||
InlineNode <span> | ||
frag 0 from TextNode start: 0, length: 5, rect: [745,8 47.34375x17] baseline: 13.296875 | ||
"bbbbb" | ||
TextNode <#text> | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x33] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x17] overflow: [8,8 784.34375x17] | ||
InlinePaintable (InlineNode<SPAN>) | ||
TextPaintable (TextNode<#text>) | ||
TextPaintable (TextNode<#text>) | ||
InlinePaintable (InlineNode<SPAN>) | ||
TextPaintable (TextNode<#text>) |
4 changes: 4 additions & 0 deletions
4
Tests/LibWeb/Layout/input/writing-modes-direction-inline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html> | ||
<html dir="rtl"> | ||
<span>aaaaa</span> | ||
<span>bbbbb</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -390,6 +390,8 @@ | |
"text-align": [ | ||
"center", | ||
"justify", | ||
"start", | ||
"end", | ||
"left", | ||
"right", | ||
"-libweb-center", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters