From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/_doublecolon_cue/index.html | 93 ++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 files/ja/web/css/_doublecolon_cue/index.html (limited to 'files/ja/web/css/_doublecolon_cue') diff --git a/files/ja/web/css/_doublecolon_cue/index.html b/files/ja/web/css/_doublecolon_cue/index.html new file mode 100644 index 0000000000..7422b52d8c --- /dev/null +++ b/files/ja/web/css/_doublecolon_cue/index.html @@ -0,0 +1,93 @@ +--- +title: '::cue' +slug: 'Web/CSS/::cue' +tags: + - '::cue' + - CSS + - Media + - Pseudo-element + - Reference + - Selector + - WebVTT + - Webビデオテキストトラック + - cue + - ウェブ動画テキストトラック + - セレクター + - メディア + - 擬似要素 +translation_of: 'Web/CSS/::cue' +--- +
{{CSSRef}}
+ +

::cueCSS擬似要素で、選択された要素内の WebVTT キューに一致します。これにより、 VTT トラック付きのメディアでキャプションや他のキューをスタイル付けすることができます。

+ +
::cue {
+  color: yellow;
+  font-weight: bold;
+}
+ +

利用可能なプロパティ

+ +

セレクターにこの要素を含む規則では、以下の CSS プロパティしか使用することができません。

+ + + +

プロパティは、あたかも1つの部品であるかのように、一連のキュー全体に適用されます。 background とその個別指定だけは例外で、各キューに個別に適用されます。これは、ボックスが生成されて予期せずメディアの大きな領域を占めることを避けるためです。

+ +

構文

+ +
{{CSSSyntax}}
+ +

+ +

次の CSS はキューのスタイルを設定し、テキストが白に、背景が半透明の黒い矩形になります。

+ +
::cue {
+  color: #fff;
+  background-color: rgba(0, 0, 0, 0.6);
+}
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("WebVTT", "#the-cue-pseudo-element", "::cue")}}{{Spec2("WebVTT")}}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("css.selectors.cue")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf