-
Notifications
You must be signed in to change notification settings - Fork 76
/
css-scrollbars.json
82 lines (82 loc) · 3.72 KB
/
css-scrollbars.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"spec": {
"title": "CSS Scrollbars Styling Module Level 1",
"url": "https://drafts.csswg.org/css-scrollbars-1/"
},
"properties": [
{
"name": "scrollbar-color",
"href": "https://drafts.csswg.org/css-scrollbars-1/#propdef-scrollbar-color",
"value": "auto | <color>{2}",
"initial": "auto",
"appliesTo": "scroll containers",
"inherited": "yes",
"percentages": "n/a",
"computedValue": "specified keyword or two computed colors",
"canonicalOrder": "per grammar",
"animationType": "by computed value",
"values": [
{
"name": "auto",
"prose": "The user agent determines the colors of the scrollbar. It should follow platform conventions, but may adjust the colors in accordance with color-scheme or other contextual information to better suit the page.",
"href": "https://drafts.csswg.org/css-scrollbars-1/#valdef-scrollbar-color-auto",
"type": "value",
"value": "auto"
},
{
"name": "<color>",
"prose": "The user agent should use the specified colors to adjust the rendering of the element’s scollbars, if any, applying the first color to the thumb of the scrollbar, and the second color to the track of the scrollbar.",
"href": "https://drafts.csswg.org/css-scrollbars-1/#valdef-scrollbar-color-color",
"type": "value",
"value": "<color>"
}
],
"styleDeclaration": [
"scrollbar-color",
"scrollbarColor"
]
},
{
"name": "scrollbar-width",
"href": "https://drafts.csswg.org/css-scrollbars-1/#propdef-scrollbar-width",
"value": "auto | thin | none",
"initial": "auto",
"appliesTo": "scroll containers",
"inherited": "no",
"percentages": "n/a",
"computedValue": "specified keyword",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "auto",
"prose": "Implementations must use the default scrollbar width.",
"href": "https://drafts.csswg.org/css-scrollbars-1/#valdef-scrollbar-width-auto",
"type": "value",
"value": "auto"
},
{
"name": "thin",
"prose": "Implementations should use thinner scrollbars than auto. This may mean a thin variant of scrollbar provided by the platform, or a custom scrollbar thinner than the default platform scrollbar. The scrollbar must nonetheless remain wide enough to be usable. (Implementers may wish to consult WCAG 2.1 SC 2.5.5 Target Size. [WCAG21]) User agents may disregard this value and treat it as auto, for instance when the user has indicated discomfort for thin scrollbars through some UA or OS setting. (User agents are encouraged to provide such a setting.)",
"href": "https://drafts.csswg.org/css-scrollbars-1/#valdef-scrollbar-width-thin",
"type": "value",
"value": "thin"
},
{
"name": "none",
"prose": "Implementations must not display any scrollbar, however the element’s scrollability by other means is not affected. Using this value can prevent mouse-only users from being able to scroll. Authors should ensure that mouse-only users can still reach hidden content, even if they have no scrollwheel. Authors that use none should provide an alternative/equivalent visual hint that scrolling is possible and there is more content.",
"href": "https://drafts.csswg.org/css-scrollbars-1/#valdef-scrollbar-width-none",
"type": "value",
"value": "none"
}
],
"styleDeclaration": [
"scrollbar-width",
"scrollbarWidth"
]
}
],
"atrules": [],
"selectors": [],
"values": []
}