Update web-platform-tests and CSS tests.

- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
Ms2ger 2017-02-06 11:06:12 +01:00
parent fb4f421c8b
commit 296fa2512b
21852 changed files with 2080936 additions and 892894 deletions

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html><head><meta charset="utf-8">
<title>CSS Logical Properties: {max-,min-}block-size</title>
<link href="mailto:openxu@gmail.com" rel="author" title="Xu Xing">
<link href="https://drafts.csswg.org/css-logical-props-1/#logical-dimension-properties" rel="help">
<link href="https://drafts.csswg.org/css-writing-modes-3/#logical-to-physical" rel="help">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style> #dummy {} </style>
<script>
function isValidDeclaration(cssText) {
var cssRule = document.styleSheets[0].cssRules[0];
cssRule.style = cssText;
var valid = (cssRule.style.length > 0);
cssRule.style = "";
return valid;
}
var tests = [
{cssText:"block-size: 1"},
{cssText:"min-block-size: 1"},
{cssText:"max-block-size: 1"},
{cssText:"inline-size: 1"},
{cssText:"min-inline-size: 1"},
{cssText:"max-inline-size: 1"},
];
tests.forEach(function(t) {
test(() => assert_false(isValidDeclaration(t.cssText)), "Check that unitless lengths are not valid for logical properties in quirks mode");
});
</script>
</head><body></body></html>