その他
縦方向の整列、ボックスサイズ、オブジェクトの収まり、スクリーンリーダー専用の切り抜きを設定します。
行内の垂直位置、ボックスの寸法、置換要素の収まり方、そして支援技術に伝えたまま視覚的に隠す補足テキストを調整します。
クラスと CSS の早見表
| クラスの例 | 期待される宣言 |
|---|---|
align-baseline | vertical-align: baseline; |
align-top | vertical-align: top; |
align-middle | vertical-align: middle; |
align-bottom | vertical-align: bottom; |
box-border | box-sizing: border-box; |
box-content | box-sizing: content-box; |
object-contain | object-fit: contain; |
object-cover | object-fit: cover; |
object-fill | object-fit: fill; |
object-none | object-fit: none; |
object-scale-down | object-fit: scale-down; |
sr-only | position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; |
sr-only | position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; |
not-sr-only | position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; |
例の設定
すべてのプレビューで spec: 1、reset: "none"、strict モード、spacingUnit: "0.25rem"、空のブレークポイント、defaultTransitionTimingFunction: "ease" を明示します。データ画像は intrinsic size が 160 × 100 のインライン SVG なので、object-fit の結果を再現できます。自作 CSS は比較用の枠とボックス寸法を設定し、配置、サイズ計算、画像の収まり方、sr-only の宣言は zudo-wind が出力します。
使い方の例
行内ラベルをテキスト行に合わせる
四つの固定値で、大きな行内ラベルを周囲の行の baseline、top、middle、bottom に配置します。
<p class="wind-demo-align-line">Text baseline <span class="wind-demo-swatch align-baseline">baseline</span> <span class="wind-demo-swatch align-top">top</span> <span class="wind-demo-swatch align-middle">middle</span> <span class="wind-demo-swatch align-bottom">bottom</span></p>@layer zw-reset, zw-tokens, zfb-hi, base, components;
@layer zw-tokens {
:root {
--zw-spacing-unit: .25rem;
}
}
.wind-demo-align-line {
margin: 0;
max-width: 38rem;
border-bottom: 1px solid #a7bacd;
color: #24364b;
font: 16px / 3 system-ui, sans-serif;
}
.wind-demo-swatch {
border: 1px solid #6c88a4;
background: #e4eff9;
padding: .2rem;
font-size: 1.1rem;
line-height: 1;
}
.align-baseline {
vertical-align: baseline;
}
.align-bottom {
vertical-align: bottom;
}
.align-middle {
vertical-align: middle;
}
.align-top {
vertical-align: top;
}この例の設定
{
"wind": {
"spec": 1,
"reset": "none",
"strict": true,
"tokens": {
"spacingUnit": "0.25rem"
},
"breakpoints": {},
"defaultTransitionTimingFunction": "ease",
"authoredClasses": {
"wind-demo-align-line": true,
"wind-demo-swatch": true
},
"safelist": {
"docs-preview": [
"align-baseline",
"align-top",
"align-middle",
"align-bottom"
]
}
}
}デモ用の自作 CSS
.wind-demo-align-line { margin: 0; max-width: 38rem; border-bottom: 1px solid #a7bacd; color: #24364b; font: 16px/3 system-ui, sans-serif; }
.wind-demo-swatch { border: 1px solid #6c88a4; background: #e4eff9; padding: 0.2rem; font-size: 1.1rem; line-height: 1; }指定した幅と外形幅を比べる
両方のボックスで width: 12rem と同じ padding、border を使います。box-border はそれらを幅に含め、box-content は外側に加算します。
<div class="wind-demo-boxes"><div class="wind-demo-box box-border">border-box<br>12rem total</div><div class="wind-demo-box box-content">content-box<br>12rem content</div></div>@layer zw-reset, zw-tokens, zfb-hi, base, components;
@layer zw-tokens {
:root {
--zw-spacing-unit: .25rem;
}
}
.wind-demo-boxes {
display: flex;
flex-wrap: wrap;
align-items: start;
gap: 1rem;
color: #24364b;
font: 14px / 1.5 system-ui, sans-serif;
}
.wind-demo-box {
width: 12rem;
border: 4px solid #52779a;
background: #e4eff9;
padding: 1rem;
}
.box-border {
box-sizing: border-box;
}
.box-content {
box-sizing: content-box;
}この例の設定
{
"wind": {
"spec": 1,
"reset": "none",
"strict": true,
"tokens": {
"spacingUnit": "0.25rem"
},
"breakpoints": {},
"defaultTransitionTimingFunction": "ease",
"authoredClasses": {
"wind-demo-boxes": true,
"wind-demo-box": true
},
"safelist": {
"docs-preview": [
"box-border",
"box-content"
]
}
}
}デモ用の自作 CSS
.wind-demo-boxes { display: flex; flex-wrap: wrap; align-items: start; gap: 1rem; color: #24364b; font: 14px/1.5 system-ui, sans-serif; }
.wind-demo-box { width: 12rem; border: 4px solid #52779a; background: #e4eff9; padding: 1rem; }同じ画像を五通りに収める
object-contain は全体を表示し、object-cover は枠を埋めて切り抜き、object-fill は引き伸ばし、object-none は元サイズを保ち、object-scale-down は必要な場合だけ縮小します。
<div class="wind-demo-object-grid"><figure class="wind-demo-object-card"><figcaption>contain</figcaption><span class="wind-demo-frame"><img width="160" height="100" src="data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'160'%20height%3D'100'%20viewBox%3D'0%200%20160%20100'%3E%3Crect%20width%3D'160'%20height%3D'100'%20fill%3D'%23dbeafe'%2F%3E%3Ccircle%20cx%3D'48'%20cy%3D'50'%20r%3D'32'%20fill%3D'%231d4ed8'%2F%3E%3Crect%20x%3D'96'%20y%3D'15'%20width%3D'54'%20height%3D'70'%20rx%3D'8'%20fill%3D'%23f97316'%2F%3E%3C%2Fsvg%3E" alt="Blue circle and orange rounded rectangle on a pale blue field" class="wind-demo-image object-contain"></span></figure><figure class="wind-demo-object-card"><figcaption>cover</figcaption><span class="wind-demo-frame"><img width="160" height="100" src="data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'160'%20height%3D'100'%20viewBox%3D'0%200%20160%20100'%3E%3Crect%20width%3D'160'%20height%3D'100'%20fill%3D'%23dbeafe'%2F%3E%3Ccircle%20cx%3D'48'%20cy%3D'50'%20r%3D'32'%20fill%3D'%231d4ed8'%2F%3E%3Crect%20x%3D'96'%20y%3D'15'%20width%3D'54'%20height%3D'70'%20rx%3D'8'%20fill%3D'%23f97316'%2F%3E%3C%2Fsvg%3E" alt="Blue circle and orange rounded rectangle on a pale blue field" class="wind-demo-image object-cover"></span></figure><figure class="wind-demo-object-card"><figcaption>fill</figcaption><span class="wind-demo-frame"><img width="160" height="100" src="data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'160'%20height%3D'100'%20viewBox%3D'0%200%20160%20100'%3E%3Crect%20width%3D'160'%20height%3D'100'%20fill%3D'%23dbeafe'%2F%3E%3Ccircle%20cx%3D'48'%20cy%3D'50'%20r%3D'32'%20fill%3D'%231d4ed8'%2F%3E%3Crect%20x%3D'96'%20y%3D'15'%20width%3D'54'%20height%3D'70'%20rx%3D'8'%20fill%3D'%23f97316'%2F%3E%3C%2Fsvg%3E" alt="Blue circle and orange rounded rectangle on a pale blue field" class="wind-demo-image object-fill"></span></figure><figure class="wind-demo-object-card"><figcaption>none</figcaption><span class="wind-demo-frame"><img width="160" height="100" src="data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'160'%20height%3D'100'%20viewBox%3D'0%200%20160%20100'%3E%3Crect%20width%3D'160'%20height%3D'100'%20fill%3D'%23dbeafe'%2F%3E%3Ccircle%20cx%3D'48'%20cy%3D'50'%20r%3D'32'%20fill%3D'%231d4ed8'%2F%3E%3Crect%20x%3D'96'%20y%3D'15'%20width%3D'54'%20height%3D'70'%20rx%3D'8'%20fill%3D'%23f97316'%2F%3E%3C%2Fsvg%3E" alt="Blue circle and orange rounded rectangle on a pale blue field" class="wind-demo-image object-none"></span></figure><figure class="wind-demo-object-card"><figcaption>scale-down</figcaption><span class="wind-demo-frame"><img width="160" height="100" src="data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'160'%20height%3D'100'%20viewBox%3D'0%200%20160%20100'%3E%3Crect%20width%3D'160'%20height%3D'100'%20fill%3D'%23dbeafe'%2F%3E%3Ccircle%20cx%3D'48'%20cy%3D'50'%20r%3D'32'%20fill%3D'%231d4ed8'%2F%3E%3Crect%20x%3D'96'%20y%3D'15'%20width%3D'54'%20height%3D'70'%20rx%3D'8'%20fill%3D'%23f97316'%2F%3E%3C%2Fsvg%3E" alt="Blue circle and orange rounded rectangle on a pale blue field" class="wind-demo-image object-scale-down"></span></figure></div>@layer zw-reset, zw-tokens, zfb-hi, base, components;
@layer zw-tokens {
:root {
--zw-spacing-unit: .25rem;
}
}
.wind-demo-object-grid {
display: flex;
flex-wrap: wrap;
gap: .8rem;
color: #24364b;
font: 13px / 1.4 system-ui, sans-serif;
}
.wind-demo-object-card {
display: grid;
gap: .3rem;
margin: 0;
}
.wind-demo-frame {
display: block;
width: 7rem;
height: 5rem;
overflow: hidden;
border: 1px solid #849bb3;
background: #f2f6fa;
}
.wind-demo-image {
display: block;
width: 7rem;
height: 5rem;
}
.object-contain {
object-fit: contain;
}
.object-cover {
object-fit: cover;
}
.object-fill {
object-fit: fill;
}
.object-none {
object-fit: none;
}
.object-scale-down {
object-fit: scale-down;
}この例の設定
{
"wind": {
"spec": 1,
"reset": "none",
"strict": true,
"tokens": {
"spacingUnit": "0.25rem"
},
"breakpoints": {},
"defaultTransitionTimingFunction": "ease",
"authoredClasses": {
"wind-demo-object-grid": true,
"wind-demo-object-card": true,
"wind-demo-frame": true,
"wind-demo-image": true
},
"safelist": {
"docs-preview": [
"object-contain",
"object-cover",
"object-fill",
"object-none",
"object-scale-down"
]
}
}
}デモ用の自作 CSS
.wind-demo-object-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; color: #24364b; font: 13px/1.4 system-ui, sans-serif; }
.wind-demo-object-card { display: grid; gap: 0.3rem; margin: 0; }
.wind-demo-frame { display: block; width: 7rem; height: 5rem; overflow: hidden; border: 1px solid #849bb3; background: #f2f6fa; }
.wind-demo-image { display: block; width: 7rem; height: 5rem; }任意の読み上げ補足を加える
見えるボタン名「Save」はそのままに、sr-only で短い補足を追加します。重要な内容は隠しません。
<div class="wind-demo-sr-example"><button type="button" class="wind-demo-sr-button">Save<span class="sr-only"> profile changes</span></button><p>The visible “Save” label stands on its own; the visually hidden words add optional context for a screen reader.</p></div>@layer zw-reset, zw-tokens, zfb-hi, base, components;
@layer zw-tokens {
:root {
--zw-spacing-unit: .25rem;
}
}
.wind-demo-sr-example {
display: grid;
justify-items: start;
gap: .7rem;
max-width: 30rem;
color: #24364b;
font: 15px / 1.5 system-ui, sans-serif;
}
.wind-demo-sr-example p {
margin: 0;
}
.wind-demo-sr-button {
border: 1px solid #526477;
border-radius: .35rem;
background: #eef3f8;
padding: .55rem .8rem;
color: inherit;
font: inherit;
}
.wind-demo-sr-button:focus-visible {
outline: 3px solid #1670b8;
outline-offset: 3px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border-width: 0;
}この例の設定
{
"wind": {
"spec": 1,
"reset": "none",
"strict": true,
"tokens": {
"spacingUnit": "0.25rem"
},
"breakpoints": {},
"defaultTransitionTimingFunction": "ease",
"authoredClasses": {
"wind-demo-sr-example": true,
"wind-demo-sr-button": true
},
"safelist": {
"docs-preview": [
"sr-only"
]
}
}
}デモ用の自作 CSS
.wind-demo-sr-example { display: grid; justify-items: start; gap: 0.7rem; max-width: 30rem; color: #24364b; font: 15px/1.5 system-ui, sans-serif; }
.wind-demo-sr-example p { margin: 0; }
.wind-demo-sr-button { border: 1px solid #526477; border-radius: 0.35rem; background: #eef3f8; padding: 0.55rem 0.8rem; color: inherit; font: inherit; }
.wind-demo-sr-button:focus-visible { outline: 3px solid #1670b8; outline-offset: 3px; }スクリーンリーダーと表示
screen-reader-visibility は対応済みの Wind ユーティリティクラスを使います。
<div class="wind-demo-new"><span class="sr-only">Hidden visually</span><span class="not-sr-only">Visible label</span></div>@layer zw-reset, zw-tokens, zfb-hi, base, components;
@layer zw-tokens {
:root {
--zw-spacing-unit: .25rem;
}
}
.wind-demo-new {
color: #203046;
font: 14px / 1.5 system-ui, sans-serif;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border-width: 0;
}
.not-sr-only {
position: static;
width: auto;
height: auto;
padding: 0;
margin: 0;
overflow: visible;
clip: auto;
clip-path: none;
white-space: normal;
}この例の設定
{
"wind": {
"spec": 1,
"reset": "none",
"strict": true,
"tokens": {
"spacingUnit": "0.25rem"
},
"breakpoints": {},
"defaultTransitionTimingFunction": "ease",
"authoredClasses": {
"wind-demo-new": true
},
"safelist": {
"docs-preview": [
"sr-only",
"not-sr-only"
]
}
}
}デモ用の自作 CSS
.wind-demo-new { color: #203046; font: 14px/1.5 system-ui, sans-serif; }任意値と名前付きの値
このファミリーの項目はすべて固定キーワードで、名前付きトークンスケールや任意値形式はありません。vertical-align は行内コンテンツを行に対して配置し、flex や grid の整列には使いません。box-border は padding と border を幅に含め、box-content は内容領域の幅を指定します。object-fit は置換要素の内容を要素の枠にどう収めるかを決めます。sr-only は支援技術のツリーには残したまま視覚的に切り取ります。視覚で読む人に必要な情報を隠す用途には使わないでください。
関連ガイド: ユーティリティの文法 · バリアント
カタログの詳細
align-baseline
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.align-baseline |
| クラスパターン | align-baseline |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 0 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | vertical-align |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "baseline" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
vertical-align | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
align-baseline | vertical-align: baseline |
align-bottom
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.align-bottom |
| クラスパターン | align-bottom |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 0 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | vertical-align |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "bottom" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
vertical-align | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
align-bottom | vertical-align: bottom |
align-middle
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.align-middle |
| クラスパターン | align-middle |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 0 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | vertical-align |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "middle" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
vertical-align | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
align-middle | vertical-align: middle |
align-top
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.align-top |
| クラスパターン | align-top |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 0 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | vertical-align |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "top" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
vertical-align | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
align-top | vertical-align: top |
box-border
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.box-border |
| クラスパターン | box-border |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 1 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | box-sizing |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "border-box" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
box-sizing | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
box-border | box-sizing: border-box |
box-content
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.box-content |
| クラスパターン | box-content |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 1 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | box-sizing |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "content-box" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
box-sizing | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
box-content | box-sizing: content-box |
object-contain
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.object-contain |
| クラスパターン | object-contain |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 2 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | object-fit |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "contain" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
object-fit | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
object-contain | object-fit: contain |
object-cover
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.object-cover |
| クラスパターン | object-cover |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 2 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | object-fit |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "cover" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
object-fit | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
object-cover | object-fit: cover |
object-fill
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.object-fill |
| クラスパターン | object-fill |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 2 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | object-fit |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "fill" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
object-fit | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
object-fill | object-fit: fill |
object-none
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.object-none |
| クラスパターン | object-none |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 2 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | object-fit |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "none" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
object-fit | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
object-none | object-fit: none |
object-scale-down
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.object-scale-down |
| クラスパターン | object-scale-down |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 2 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | object-fit |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "scale-down" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
object-fit | resolved | null |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
object-scale-down | object-fit: scale-down |
sr-only
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.sr-only |
| クラスパターン | sr-only |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 3 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | position, width, height, padding, margin, overflow, clip, white-space, border-width |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "absolute" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
position | fixed | "absolute" |
width | fixed | "1px" |
height | fixed | "1px" |
padding | fixed | "0" |
margin | fixed | "-1px" |
overflow | fixed | "hidden" |
clip | fixed | "rect(0,0,0,0)" |
white-space | fixed | "nowrap" |
border-width | fixed | "0" |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
sr-only | position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0 |
not-sr-only
| フィールド | 値 |
|---|---|
| カタログ識別子 | v1.not-sr-only |
| クラスパターン | not-sr-only |
| 文法 | {"acceptedKinds":["exact"],"arbitraryProperty":null,"allowsFractionSlash":false,"allowsColorOpacity":false} |
| 受け入れる値 | 1 |
| トークンカテゴリ | トークンカテゴリなし |
| 負の値の規則 | forbidden |
| 競合グループと順位 | miscellaneous (44) |
| 並び順の順位 | 4 |
| セレクタの形 | ownElement |
| 仕様バージョン | 1 |
| 出力するプロパティ | position, width, height, padding, margin, overflow, clip, clip-path, white-space |
受け入れる値
| 種類 | 接尾辞 | 出力される値 |
|---|---|---|
exact | null | "static" |
宣言テンプレート
| プロパティ | 値の種類 | 固定値 |
|---|---|---|
position | fixed | "static" |
width | fixed | "auto" |
height | fixed | "auto" |
padding | fixed | "0" |
margin | fixed | "0" |
overflow | fixed | "visible" |
clip | fixed | "auto" |
clip-path | fixed | "none" |
white-space | fixed | "normal" |
カタログの例
| クラスの例 | 期待される宣言 |
|---|---|
not-sr-only | position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal |