mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
LibWeb: Basic support for CSS text-indent: <length-percentage>
Note that this simple form of text-indent only affects the first line of formatted content in each block. Percentages are resolved against the width of the block.
This commit is contained in:
parent
9c2d496dbe
commit
5d4e9a0673
6 changed files with 55 additions and 0 deletions
13
Tests/LibWeb/Layout/input/text-indent.html
Normal file
13
Tests/LibWeb/Layout/input/text-indent.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!doctype html><style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
font: 16px SerenitySans;
|
||||
}
|
||||
.px-indent {
|
||||
text-indent: 50px;
|
||||
}
|
||||
.pct-indent {
|
||||
text-indent: 50%;
|
||||
width: 100px;
|
||||
}
|
||||
</style><div class="px-indent">50px indent <p>is inherited</p></div><div class="pct-indent">50% indent snip snap snib snab</pct>
|
Loading…
Add table
Add a link
Reference in a new issue