Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Scroll Snap 2 Test: scroll-start sets longhands</title>
<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-start', '100px', {
'scroll-start-block': '100px',
'scroll-start-inline': 'start',
});
test_shorthand_value('scroll-start', '50%', {
'scroll-start-block': '50%',
'scroll-start-inline': 'start',
});
test_shorthand_value('scroll-start', 'center', {
'scroll-start-block': 'center',
'scroll-start-inline': 'start',
});
test_shorthand_value('scroll-start', '100px 200px', {
'scroll-start-block': '100px',
'scroll-start-inline': '200px',
});
test_shorthand_value('scroll-start', '100px 50%', {
'scroll-start-block': '100px',
'scroll-start-inline': '50%',
});
test_shorthand_value('scroll-start', '100px center', {
'scroll-start-block': '100px',
'scroll-start-inline': 'center',
});
test_shorthand_value('scroll-start', '50% 200px', {
'scroll-start-block': '50%',
'scroll-start-inline': '200px',
});
test_shorthand_value('scroll-start', '50% 25%', {
'scroll-start-block': '50%',
'scroll-start-inline': '25%',
});
test_shorthand_value('scroll-start', '50% center', {
'scroll-start-block': '50%',
'scroll-start-inline': 'center',
});
test_shorthand_value('scroll-start', 'center 200px', {
'scroll-start-block': 'center',
'scroll-start-inline': '200px',
});
test_shorthand_value('scroll-start', 'center 25%', {
'scroll-start-block': 'center',
'scroll-start-inline': '25%',
});
test_shorthand_value('scroll-start', 'center end', {
'scroll-start-block': 'center',
'scroll-start-inline': 'end',
});
</script>
</body>