mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
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:
parent
fb4f421c8b
commit
296fa2512b
21852 changed files with 2080936 additions and 892894 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue