mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -0,0 +1,28 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue