diff options
author | Andreas Kling <kling@serenityos.org> | 2023-05-15 16:42:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-15 19:31:09 +0200 |
commit | 5d4e9a0673bd3a35495ced6ece8404d55105f101 (patch) | |
tree | 4453d60568f14a2e8b984f5d278fb03179de0244 /Tests/LibWeb/Layout/input | |
parent | 9c2d496dbe1c0aa2c91e30e00bebca47c4a568fa (diff) | |
download | serenity-5d4e9a0673bd3a35495ced6ece8404d55105f101.zip |
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.
Diffstat (limited to 'Tests/LibWeb/Layout/input')
-rw-r--r-- | Tests/LibWeb/Layout/input/text-indent.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/text-indent.html b/Tests/LibWeb/Layout/input/text-indent.html new file mode 100644 index 0000000000..4ee71dcc7a --- /dev/null +++ b/Tests/LibWeb/Layout/input/text-indent.html @@ -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> |