gecko-dev/testing/web-platform/tests/css/css-inline/parsing/dominant-baseline-valid.html
Eric Willigers 5bc2e789dd Bug 1570268 [wpt PR 18197] - CSS: WPTs for dominant-baseline parsing, a=testonly
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
2019-08-05 14:50:49 +00:00

25 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Inline Layout: parsing dominant-baseline with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#dominant-baseline-property">
<meta name="assert" content="dominant-baseline supports the full grammar 'auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_valid_value("dominant-baseline", "auto");
test_valid_value("dominant-baseline", "text-bottom");
test_valid_value("dominant-baseline", "alphabetic");
test_valid_value("dominant-baseline", "ideographic");
test_valid_value("dominant-baseline", "middle");
test_valid_value("dominant-baseline", "central");
test_valid_value("dominant-baseline", "mathematical");
test_valid_value("dominant-baseline", "hanging");
test_valid_value("dominant-baseline", "text-top");
</script>
</body>
</html>