mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
28 lines
720 B
HTML
28 lines
720 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>CSS Values: parsing width with valid viewport units</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-values-4/#viewport-relative-lengths">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/css/support/parsing-testcommon.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
const prefixes = ["", "s", "l", "d"];
|
|
const suffixes = ["vw", "vh", "vi", "vb", "vmin", "vmax"];
|
|
const units = [];
|
|
|
|
for (const prefix of prefixes) {
|
|
for (const suffix of suffixes) {
|
|
units.push(prefix + suffix);
|
|
}
|
|
}
|
|
|
|
for (const unit of units) {
|
|
test_valid_value("width", "1" + unit);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|