diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-inline/text-box-trim/text-box-trim-half-leading-block-box-001.html')
-rw-r--r-- | testing/web-platform/tests/css/css-inline/text-box-trim/text-box-trim-half-leading-block-box-001.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-inline/text-box-trim/text-box-trim-half-leading-block-box-001.html b/testing/web-platform/tests/css/css-inline/text-box-trim/text-box-trim-half-leading-block-box-001.html new file mode 100644 index 0000000000..9ad9ffc3fc --- /dev/null +++ b/testing/web-platform/tests/css/css-inline/text-box-trim/text-box-trim-half-leading-block-box-001.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<title>Tests block boxes's edges are trimmed at text-over/text-under baselines of their first/last formatted lines</title> +<link rel="help" href="https://drafts.csswg.org/css-inline-3/#leading-trim"> +<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> +<link rel="match" href="text-box-trim-half-leading-inline-box-001-ref.html"> + +<style> +.div-parent { + outline: 1px solid orange; + font-family: Ahem; + font-size: 20px; + line-height: 3; + text-box-trim: both; +} +</style> + +<div class ="div-parent""> + <div id="d1"></div> + <div id="d2">Testline1<br>Testline2<br>Testline3</div> +</div> |