CSS - position-area

概要

属性名 position-area
none | <position-area>
値の詳細 <position-area> = [ [ left | center | right | span-left | span-right | x-start | x-end | span-x-start | span-x-end | x-self-start | x-self-end | span-x-self-start | span-x-self-end | span-all ] || [ top | center | bottom | span-top | span-bottom | y-start | y-end | span-y-start | span-y-end | y-self-start | y-self-end | span-y-self-start | span-y-self-end | span-all ] | [ block-start | center | block-end | span-block-start | span-block-end | span-all ] || [ inline-start | center | inline-end | span-inline-start | span-inline-end | span-all ] | [ self-block-start | center | self-block-end | span-self-block-start | span-self-block-end | span-all ] || [ self-inline-start | center | self-inline-end | span-self-inline-start | span-self-inline-end | span-all ] | [ start | center | end | span-start | span-end | span-all ]{1,2} | [ self-start | center | self-end | span-self-start | span-self-end | span-all ]{1,2} ]
初期値none
適用可能要素position-anchor を指定した要素
継承継承しない
サポートhttps://caniuse.com/mdn-css_properties_position-area

説明

アンカーポジショニングにおいてポジション要素の位置を指定します。詳細は「とほほのアンカーポジショニング入門」を参照してください。

none
位置を指定しません。
<position-area>
ポジション要素の縦位置と横位置を指定します。

使用例

CSS
.my-anchor {
  position-area: --my-anchor;
  position-area: bottom span-right;
}

リンク