aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/css/css_scroll_snap/index.html
blob: 1d9daef4a3ea16d6577b0558da68d700c4d20171 (plain)
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
83
84
85
86
---
title: CSS Scroll Snap
slug: Web/CSS/CSS_Scroll_Snap
tags:
  - CSS
  - CSS Scroll Snap
  - NeedsTranslation
  - Overview
  - Reference
  - TopicStub
translation_of: Web/CSS/CSS_Scroll_Snap
---
<div>{{CSSRef}}</div>

<p class="summary"><strong>CSS Scroll Snap</strong> is a module of CSS that introduces scroll snap positions, which enforce the scroll positions that a {{Glossary("scroll container")}}’s {{Glossary("scrollport")}} may end at after a scrolling operation has completed.</p>

<div class="note">
<p><strong>Note</strong>: The previous version of this module was called Scroll Snap Points and has been deprecated. CSS Scroll Snap is the current implementation.</p>
</div>

<h2 id="Reference">Reference</h2>

<h3 id="CSS_Properties_on_Containers">CSS Properties on Containers</h3>

<ul>
 <li>{{cssxref("scroll-snap-type")}}</li>
 <li>{{cssxref("scroll-snap-stop")}}</li>
 <li>{{cssxref("scroll-padding")}}</li>
 <li>{{cssxref("scroll-padding-top")}}</li>
 <li>{{cssxref("scroll-padding-right")}}</li>
 <li>{{cssxref("scroll-padding-bottom")}}</li>
 <li>{{cssxref("scroll-padding-left")}}</li>
 <li>{{cssxref("scroll-padding-inline")}}</li>
 <li>{{cssxref("scroll-padding-inline-start")}}</li>
 <li>{{cssxref("scroll-padding-inline-end")}}</li>
 <li>{{cssxref("scroll-padding-block")}}</li>
 <li>{{cssxref("scroll-padding-block-start")}}</li>
 <li>{{cssxref("scroll-padding-block-end")}}</li>
</ul>

<h3 id="CSS_Properties_on_Children">CSS Properties on Children</h3>

<ul>
 <li>{{cssxref("scroll-snap-align")}}</li>
 <li>{{cssxref("scroll-margin")}}</li>
 <li>{{cssxref("scroll-margin-top")}}</li>
 <li>{{cssxref("scroll-margin-right")}}</li>
 <li>{{cssxref("scroll-margin-bottom")}}</li>
 <li>{{cssxref("scroll-margin-left")}}</li>
 <li>{{cssxref("scroll-margin-inline")}}</li>
 <li>{{cssxref("scroll-margin-inline-start")}}</li>
 <li>{{cssxref("scroll-margin-inline-end")}}</li>
 <li>{{cssxref("scroll-margin-block")}}</li>
 <li>{{cssxref("scroll-margin-block-start")}}</li>
 <li>{{cssxref("scroll-margin-block-end")}}</li>
</ul>

<h2 id="Guides">Guides</h2>

<ul>
 <li><a href="/en-US/docs/Web/CSS/CSS_Scroll_Snap/Basic_concepts">Basic concepts of CSS Scroll Snap</a></li>
 <li><a href="/en-US/docs/Web/CSS/CSS_Scroll_Snap/compat">Browser Compatibility and Scroll Snap</a></li>
</ul>

<h2 id="Specification">Specification</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName("CSS Scroll Snap Points")}}</td>
   <td>{{Spec2("CSS Scroll Snap Points")}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>The individual property pages detail the browser compatibility situation for Scroll Snap. Note that at the present time Firefox still implements an old version of the specification. <a href="/en-US/docs/Web/CSS/CSS_Scroll_Snap/compat">Read the guide to browser compatibility</a> for an overview of how to support both the old and new specification. </p>