Sticky Position
スティッキーポジション
CSSのスティッキーポジショニングは、通常の相対位置指定のように始まります。ページをスクロールすると、ボックスは設定された端に留まることができますが、コンテナブロックの内部に限られます。
もう一つの例
長いテーブルが、ヘッダーに top: 0 を設定した1つのスクロールエリア内に配置されています。ヘッダーは、テーブルが表示されている間のみ上部に留まります。エッジの設定を忘れたり、間違ったスクロールコンテナを使用したりすると、sticky ポジショニングが機能しなくなることがあります。
主な部分
- 01スクロールコンテナ
- 02自動挿入なし
- 03含むブロック境界
以下の場合に使用します
通常のレイアウトの項目が最も近いスクロール領域内で見えるままであるべき場合、この用語を使用します。
以下の場合は使用しないでください
コンテンツを覆ったり、不明瞭な方法で重なったり、小さな画面の大部分を占める付箋は使用しないでください。
コードで使用する名前
position: sticky; inset-block-start: 0 出荷前に
Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.
Outcome:Complete the task with スティッキーポジション (Sticky Position)。 User context:長いテーブルが、ヘッダーに top: 0 を設定した1つのスクロールエリア内に配置されています。ヘッダーは、テーブルが表示されている間のみ上部に留まります。エッジの設定を忘れたり、間違ったスクロールコンテナを使用したりすると、sticky ポジショニングが機能しなくなることがあります。 Design concept to apply:スティッキーポジション (Sticky Position)。 Why it fits:通常のレイアウトの項目が最も近いスクロール領域内で見えるままであるべき場合、この用語を使用します。 Do not use it when:コンテンツを覆ったり、不明瞭な方法で重なったり、小さな画面の大部分を占める付箋は使用しないでください。 Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary):きちんとした書類でも、まだドラフトやリリース候補、あるいは最終版かもしれません。ステータスや、ブラウザやプラットフォームの対応状況を確認しましょう。 Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
このリクエストを確認する
Review how スティッキーポジション (Sticky Position) is used now. Definition: CSSのスティッキーポジショニングは、通常の相対位置指定のように始まります。ページをスクロールすると、ボックスは設定された端に留まることができますが、コンテナブロックの内部に限られます。 Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.