diff options
author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-10-10 23:56:53 +0900 |
---|---|---|
committer | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-10-19 15:26:24 +0900 |
commit | f29c1e5bbfb2590b04267bf88b5becf20af18bc5 (patch) | |
tree | 31ed1573a1f6ea459afc7c045941203bc871e0dd /files/ja/web/css/scroll-margin-block | |
parent | fb7915750b685c989ce45935934dc8a67c076975 (diff) | |
download | translated-content-f29c1e5bbfb2590b04267bf88b5becf20af18bc5.tar.gz translated-content-f29c1e5bbfb2590b04267bf88b5becf20af18bc5.tar.bz2 translated-content-f29c1e5bbfb2590b04267bf88b5becf20af18bc5.zip |
CSS スクロールスナップの文書の変換準備
Diffstat (limited to 'files/ja/web/css/scroll-margin-block')
-rw-r--r-- | files/ja/web/css/scroll-margin-block/index.md | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/files/ja/web/css/scroll-margin-block/index.md b/files/ja/web/css/scroll-margin-block/index.md new file mode 100644 index 0000000000..b78fd009a4 --- /dev/null +++ b/files/ja/web/css/scroll-margin-block/index.md @@ -0,0 +1,65 @@ +--- +title: scroll-margin-block +slug: Web/CSS/scroll-margin-block +tags: + - CSS + - recipe:css-shorthand-property + - scroll-margin-block +browser-compat: css.properties.scroll-margin-block +--- +{{CSSRef}} + +The `scroll-margin-block` [shorthand property](/en-US/docs/Web/CSS/Shorthand_properties) sets the scroll margins of an element in the block dimension. + +{{EmbedInteractiveExample("pages/css/scroll-margin-block.html")}} + +## Constituent properties + +This property is a shorthand for the following CSS properties: + +- [`scroll-margin-block-end`](/en-US/docs/Web/CSS/scroll-margin-block-end) +- [`scroll-margin-block-start`](/en-US/docs/Web/CSS/scroll-margin-block-start) + +## Syntax + +```css +/* <length> values */ +scroll-margin-block: 10px; +scroll-margin-block: 1em .5em ; + +/* Global values */ +scroll-margin-block: inherit; +scroll-margin-block: initial; +scroll-margin-block: revert; +scroll-margin-block: unset; +``` + +### Values + +- `<length>` + - : An outset from the corresponding edge of the scroll container. + +## Description + +The scroll-margin values represent outsets defining the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets. + +## Formal definition + +{{cssinfo}} + +## Formal syntax + +{{csssyntax}} + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- [CSS Scroll Snap](/en-US/docs/Web/CSS/CSS_Scroll_Snap) +- [Well-Controlled Scrolling with CSS Scroll Snap](https://web.dev/css-scroll-snap/) |