mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 9f31d497bf87bdf5ebc3ba70b5cb9f87786f4071
This commit is contained in:
parent
1f64024655
commit
4bc7277be1
145 changed files with 3112 additions and 1980 deletions
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Scroll Snap Test: scroll-margin-block, scroll-margin-inline set longhands</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#margin-longhands-logical">
|
||||
<meta name="assert" content="scroll-margin-block, scroll-margin-inline support the full grammar '<length>{1,2}'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/shorthand-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_shorthand_value('scroll-margin-block', '10px 20px', {
|
||||
'scroll-margin-block-start': '10px',
|
||||
'scroll-margin-block-end': '20px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-margin-block', '30px', {
|
||||
'scroll-margin-block-start': '30px',
|
||||
'scroll-margin-block-end': '30px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-margin-inline', '50px 60px', {
|
||||
'scroll-margin-inline-start': '50px',
|
||||
'scroll-margin-inline-end': '60px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-margin-inline', '-40px', {
|
||||
'scroll-margin-inline-start': '-40px',
|
||||
'scroll-margin-inline-end': '-40px'
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Scroll Snap Test: scroll-margin sets longhands</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin">
|
||||
<meta name="assert" content="scroll-margin supports the full grammar '<length>{1,4}'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/shorthand-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_shorthand_value('scroll-margin', '10px', {
|
||||
'scroll-margin-top': '10px',
|
||||
'scroll-margin-right': '10px',
|
||||
'scroll-margin-bottom': '10px',
|
||||
'scroll-margin-left': '10px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-margin', '30px 20px', {
|
||||
'scroll-margin-top': '30px',
|
||||
'scroll-margin-right': '20px',
|
||||
'scroll-margin-bottom': '30px',
|
||||
'scroll-margin-left': '20px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-margin', '1px 2px 3px', {
|
||||
'scroll-margin-top': '1px',
|
||||
'scroll-margin-right': '2px',
|
||||
'scroll-margin-bottom': '3px',
|
||||
'scroll-margin-left': '2px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-margin', '-1px 2px 3px 0', {
|
||||
'scroll-margin-top': '-1px',
|
||||
'scroll-margin-right': '2px',
|
||||
'scroll-margin-bottom': '3px',
|
||||
'scroll-margin-left': '0px'
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Scroll Snap Test: scroll-padding-block, scroll-padding-inline set longhands</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#padding-longhands-logical">
|
||||
<meta name="assert" content="scroll-padding-block, scroll-padding-inline support the full grammar '[ auto | <length-percentage> ]{1,2}'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/shorthand-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_shorthand_value('scroll-padding-block', 'auto 10px', {
|
||||
'scroll-padding-block-start': 'auto',
|
||||
'scroll-padding-block-end': '10px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-padding-block', '20%', {
|
||||
'scroll-padding-block-start': '20%',
|
||||
'scroll-padding-block-end': '20%'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-padding-inline', '10px auto', {
|
||||
'scroll-padding-inline-start': '10px',
|
||||
'scroll-padding-inline-end': 'auto'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-padding-inline', '0%', {
|
||||
'scroll-padding-inline-start': '0%',
|
||||
'scroll-padding-inline-end': '0%'
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Scroll Snap Test: scroll-padding sets longhands</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-padding">
|
||||
<meta name="assert" content="scroll-padding supports the full grammar '[ <length-percentage> | auto ]{1,4}'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/css/support/shorthand-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_shorthand_value('scroll-padding', '10px', {
|
||||
'scroll-padding-top': '10px',
|
||||
'scroll-padding-right': '10px',
|
||||
'scroll-padding-bottom': '10px',
|
||||
'scroll-padding-left': '10px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-padding', 'auto 20px', {
|
||||
'scroll-padding-top': 'auto',
|
||||
'scroll-padding-right': '20px',
|
||||
'scroll-padding-bottom': 'auto',
|
||||
'scroll-padding-left': '20px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-padding', '1px 2px 3px', {
|
||||
'scroll-padding-top': '1px',
|
||||
'scroll-padding-right': '2px',
|
||||
'scroll-padding-bottom': '3px',
|
||||
'scroll-padding-left': '2px'
|
||||
});
|
||||
|
||||
test_shorthand_value('scroll-padding', '1% 2px 3px 0', {
|
||||
'scroll-padding-top': '1%',
|
||||
'scroll-padding-right': '2px',
|
||||
'scroll-padding-bottom': '3px',
|
||||
'scroll-padding-left': '0px'
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue