CSS - anchor-name
概要
| 属性名 | anchor-name |
|---|---|
| 値 | none | <dashed-ident> |
| 初期値 | none |
| 適用可能要素 | プリンシパルボックスを構成するすべての要素 |
| 継承 | 継承しない |
| サポート | https://caniuse.com/mdn-css_properties_anchor-name |
説明
アンカーポジショニングにおいてアンカー名を定義します。詳細は「とほほのアンカーポジショニング入門」を参照してください。
- none
- アンカー名を定義しません。
- <dashed-ident>
--で始まるアンカー名を指定します。
使用例
CSS
.my-anchor {
anchor-name: --my-anchor;
}
リンク
- https://drafts.csswg.org/css-anchor-position-1/#name
- https://developer.mozilla.org/en-US/docs/Web/CSS/anchor-name
Copyright (C) 2024 杜甫々
初版:2024年12月22日、最終更新:2024年12月22日
https://www.tohoho-web.com/css/prop/anchor-name.htm