Skip to content

Commit 65f4676

Browse files
[carousel] Add tabs/links mode to CSS scroll-marker-group property
This CL adds just parsing of tabs/links mode for scroll-marker-group property. No behaviour changes. This change is to experiment and draft the spec behaviour of different modes of navigation/a11y for ::scroll-marker Spec discussion: w3c/csswg-drafts#12122 TESTS=third_party/blink/web_tests/external/wpt/css/css-overflow/ Bug: 425931511 Change-Id: I14abfd31e2639a5996727ca5307af9574ddbcc14 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6728654 Reviewed-by: Robert Flack <[email protected]> Commit-Queue: Daniil Sakhapov <[email protected]> Cr-Commit-Position: refs/heads/main@{#1485695}
1 parent e9c3b77 commit 65f4676

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Overflow: scroll-marker-group with tabs/links mode computed values</title>
4+
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/12122">
5+
<script src="/resources/testharness.js"></script>
6+
<script src="/resources/testharnessreport.js"></script>
7+
<script src="/css/support/computed-testcommon.js"></script>
8+
<div id="target"></div>
9+
<script>
10+
test_computed_value('scroll-marker-group', 'before tabs');
11+
test_computed_value('scroll-marker-group', 'before links');
12+
test_computed_value('scroll-marker-group', 'after links');
13+
test_computed_value('scroll-marker-group', 'after tabs');
14+
</script>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Overflow: parsing scroll-marker-group with modes invalid values</title>
4+
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/12122">
5+
<script src="/resources/testharness.js"></script>
6+
<script src="/resources/testharnessreport.js"></script>
7+
<script src="/css/support/parsing-testcommon.js"></script>
8+
<div id="target"></div>
9+
<script>
10+
test_invalid_value('scroll-marker-group', 'before before');
11+
test_invalid_value('scroll-marker-group', 'after before');
12+
test_invalid_value('scroll-marker-group', 'after tab');
13+
test_invalid_value('scroll-marker-group', 'after link');
14+
test_invalid_value('scroll-marker-group', 'links after');
15+
test_invalid_value('scroll-marker-group', 'tabs before');
16+
test_invalid_value('scroll-marker-group', 'after, tabs');
17+
test_invalid_value('scroll-marker-group', 'after, links');
18+
</script>

0 commit comments

Comments
 (0)