gecko-dev/testing/web-platform/tests/css/css-inline/parsing/dominant-baseline-invalid.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

20 lines
845 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Inline Layout: parsing dominant-baseline with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#dominant-baseline-property">
<meta name="assert" content="dominant-baseline supports only the 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_invalid_value("dominant-baseline", "normal");
test_invalid_value("dominant-baseline", "none");
test_invalid_value("dominant-baseline", "alphabetic, ideographic");
test_invalid_value("dominant-baseline", "middle central");
</script>
</body>
</html>