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: parsing tests for sizing properties Web Platform Tests for parsing of CSS Intrinsic & Extrinsic Sizing properties. https://drafts.csswg.org/css-sizing-3/#property-index Change-Id: I89bcf4317d5ff403ca27d6dc3a2b85578681d850 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1595199 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Cr-Commit-Position: refs/heads/master@{#656763} -- wpt-commits: a5937384a874293c2a84070828584a9790513700 wpt-pr: 16682
21 lines
760 B
HTML
21 lines
760 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Intrinsic & Extrinsic Sizing Test: parsing width with invalid values</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#propdef-width">
|
|
<meta name="assert" content="width supports only the grammar 'auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>)'.">
|
|
<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("width", "none");
|
|
test_invalid_value("width", "min-content max-content");
|
|
|
|
test_invalid_value("width", "-10%");
|
|
test_invalid_value("width", "-0.5em");
|
|
</script>
|
|
</body>
|
|
</html>
|