aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/_doublecolon_cue/index.html
blob: de824dd4c8ca676ce649c5a376cdb68048ec8728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
title: '::cue'
slug: 'Web/CSS/::cue'
tags:
  - '::cue'
  - CSS
  - Media
  - Pseudo-element
  - Reference
  - Selector
  - WebVTT
  - Webビデオテキストトラック
  - cue
  - ウェブ動画テキストトラック
  - セレクター
  - メディア
  - 擬似要素
translation_of: 'Web/CSS/::cue'
---
<div>{{CSSRef}}</div>

<p><span class="seoSummary"><strong><code>::cue</code></strong><a href="/ja/docs/Web/CSS">CSS</a><a href="/ja/docs/Web/CSS/Pseudo-elements">擬似要素</a>で、選択された要素内の <a href="/ja/docs/Web/API/WebVTT_API">WebVTT</a> キューに一致します。これにより、 VTT トラック付きのメディアで<a href="/ja/docs/Web/API/WebVTT_API#Styling_WebTT_cues">キャプションや他のキューをスタイル付けする</a>ことができます。</span></p>

<pre class="brush: css no-line-numbers notranslate">::cue {
  color: yellow;
  font-weight: bold;
}</pre>

<h2 id="Permitted_properties" name="Permitted_properties">利用可能なプロパティ</h2>

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

<ul>
 <li>{{CSSxRef("background")}} およびその個別指定プロパティ</li>
 <li>{{CSSxRef("color")}}</li>
 <li>{{CSSxRef("font")}} およびその個別指定プロパティ</li>
 <li>{{CSSxRef("line-height")}}</li>
 <li>{{CSSxRef("opacity")}}</li>
 <li>{{CSSxRef("outline")}} およびその個別指定プロパティ</li>
 <li>{{CSSxRef("ruby-position")}}</li>
 <li>{{CSSxRef("text-combine-upright")}}</li>
 <li>{{CSSxRef("text-decoration")}} およびその個別指定プロパティ</li>
 <li>{{CSSxRef("text-shadow")}}</li>
 <li>{{CSSxRef("visibility")}}</li>
 <li>{{CSSxRef("white-space")}}</li>
</ul>

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

<h2 id="Syntax" name="Syntax">構文</h2>

{{CSSSyntax}}

<h2 id="Example" name="Example"></h2>

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

<pre class="brush: css notranslate">::cue {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
}</pre>

<h2 id="Specifications" name="Specifications">仕様書</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">仕様書</th>
   <th scope="col">状態</th>
   <th scope="col">備考</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName("WebVTT", "#the-cue-pseudo-element", "::cue")}}</td>
   <td>{{Spec2("WebVTT")}}</td>
   <td>初回定義</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>

<p>{{Compat("css.selectors.cue")}}</p>

<h2 id="See_also" name="See_also">関連情報</h2>

<ul>
 <li><a href="/ja/docs/Web/API/WebVTT_API">Web Video Tracks Format (WebVTT)</a></li>
 <li>{{HTMLElement("track")}}, {{HTMLElement("video")}}</li>
</ul>