CSS Anchor Positioning
CSSアンカーポジショニング
CSSアンカーポジショニングは、あるボックスを他の名前付きアンカー要素に相対的に配置します。
もう一つの例
テーブルのヘルプポップオーバーは、その情報ボタンにアンカーされ、最初はその下に開こうとします。ビューポートの端にわずか 12px しか残っていない場合、`position-try` がそれを上に移動させます。アンカーポジショニングがボックスを配置します。フォーカスや閉じる操作は制御しません。それらの動作は別に構築してください。
主な部分
- 01アンカー要素
- 02配置されたボックス
- 03フォールバック位置オプション
以下の場合に使用します
トリガーに従わなければならず、明確なバックアップ位置を持つツールチップ、ポップオーバー、メニュー、ノートに使用します。
以下の場合は使用しないでください
アンカーポジショニングはフォーカスを管理したり、すべての境界衝突を解決したりするものではありません。ブラウザや対応できないケースのために強力なフォールバックを保持してください。
コードで使用する名前
anchor-name + position-anchor + position-area/anchor() + position-try 出荷前に
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 CSSアンカーポジショニング (CSS Anchor Positioning)。 User context:テーブルのヘルプポップオーバーは、その情報ボタンにアンカーされ、最初はその下に開こうとします。ビューポートの端にわずか 12px しか残っていない場合、`position-try` がそれを上に移動させます。アンカーポジショニングがボックスを配置します。フォーカスや閉じる操作は制御しません。それらの動作は別に構築してください。 Design concept to apply:CSSアンカーポジショニング (CSS Anchor Positioning)。 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 CSSアンカーポジショニング (CSS Anchor Positioning) 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.