mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
Automatic update from web-platform-tests CSS: WPTs for dominant-baseline parsing dominant-baseline is specified to accept auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top Blink hasn't implemented support for text-bottom or text-top. https://drafts.csswg.org/css-inline-3/#dominant-baseline-property Change-Id: I956027066788415063ee0d6b9867af458da365cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1728890 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Cr-Commit-Position: refs/heads/master@{#682671} -- wpt-commits: 267642fb2bb4fb91b5c6c8c5f53dcfb3a3e761cd wpt-pr: 18197
26 lines
1 KiB
HTML
26 lines
1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Inline Layout: getComputedStyle().dominantBaseline</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#dominant-baseline-property">
|
|
<meta name="assert" content="dominant-baseline computed value is as specified.">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/css/support/computed-testcommon.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="target"></div>
|
|
<script>
|
|
test_computed_value("dominant-baseline", "auto");
|
|
test_computed_value("dominant-baseline", "text-bottom");
|
|
test_computed_value("dominant-baseline", "alphabetic");
|
|
test_computed_value("dominant-baseline", "ideographic");
|
|
test_computed_value("dominant-baseline", "middle");
|
|
test_computed_value("dominant-baseline", "central");
|
|
test_computed_value("dominant-baseline", "mathematical");
|
|
test_computed_value("dominant-baseline", "hanging");
|
|
test_computed_value("dominant-baseline", "text-top");
|
|
</script>
|
|
</body>
|
|
</html>
|