::cue-region
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
::cue-region
は CSSの擬似要素で、選択された要素内にある WebVTT キューに一致します。これは VTT トラックのアルメディアで字幕とその他のキューのスタイル付けに利用できます。
css
::cue-region {
color: yellow;
font-weight: bold;
}
プロパティは、キューのセット全体に対して、あたかも 1 つのユニットであるかのように適用されます。唯一の例外として、 background
とその個別指定プロパティは各キューに個別に適用されるので、ボックスを作成したり、メディアの予期せぬ大きな領域を覆ったりすることを避けることができます。
構文
Error: could not find syntax for this item
許可されているプロパティ
この要素を含むセレクターを持つルールには、以下の CSS プロパティのみが使用できます。
background
background-attachment
background-clip
background-color
background-image
background-origin
background-position
background-repeat
background-size
color
font
font-family
font-size
font-stretch
font-style
font-variant
font-weight
line-height
opacity
outline
outline-color
outline-style
outline-width
ruby-position
text-combine-upright
text-decoration
text-decoration-color
text-decoration-line
text-decoration-style
text-decoration-thickness
text-shadow
visibility
white-space
仕様書
No specification found
No specification data found for css.selectors.cue-region
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
ブラウザーの互換性
BCD tables only load in the browser
関連情報
- その他の WebVTT に関するセレクター: