From f29c1e5bbfb2590b04267bf88b5becf20af18bc5 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 10 Oct 2021 23:56:53 +0900 Subject: CSS スクロールスナップの文書の変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/scroll-margin-block/index.md | 65 +++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 files/ja/web/css/scroll-margin-block/index.md (limited to 'files/ja/web/css/scroll-margin-block') 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 +/* 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 + +- `` + - : 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/) -- cgit v1.2.3-54-g00ecf