aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/css/_doublecolon_marker/index.html
blob: 37caf3ec01bd2e7f301e8e2189d92399d0192236 (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
92
93
---
title: '::marker'
slug: 'Web/CSS/::marker'
translation_of: 'Web/CSS/::marker'
---
<div>{{CSSRef}}</div>

<p><span class="seoSummary">Псевдоэлемент <strong><code>::marker</code></strong> применяет стили к маркеру элемента списка, которые обычно содержит значок или номер.</span> Работает с любым элементом или псевдоэлементом, к которого установлен <code><a href="/en-US/docs/Web/CSS/display">display: list-item</a></code>, например, у такого как {{HTMLElement("li")}} или {{HTMLElement("summary")}}.</p>

<pre class="brush: css no-line-numbers notranslate">::marker {
  color: blue;
  font-size: 1.2em;
}</pre>

<h2 id="Разрешённые_свойства">Разрешённые свойства</h2>

<p>Только некоторые CSS-свойства могут быть использованы с <code>::marker</code> в качестве селектора:</p>

<ul>
 <li>Все <a href="/en-US/docs/Web/CSS/CSS_Fonts">свойства шрифтов</a></li>
 <li>{{CSSxRef("white-space")}}</li>
 <li>{{CSSxRef("color")}}</li>
 <li>{{CSSxRef("text-combine-upright")}}, {{CSSxRef("unicode-bidi")}} и {{CSSxRef("direction")}} </li>
 <li>Свойство {{CSSxRef("content")}}</li>
 <li>Все <a href="/en-US/docs/Web/CSS/CSS_Animations#CSS_Properties">animation</a> и <a href="/en-US/docs/Web/CSS/CSS_Transitions#Properties">transition</a> свойства</li>
</ul>

<div class="blockIndicator note">
<p>The specification states that additional CSS properties may be supported in future.</p>
</div>

<h2 id="Syntax">Syntax</h2>

{{CSSSyntax}}

<h2 id="Examples">Examples</h2>

<h3 id="HTML">HTML</h3>

<pre class="brush: html notranslate">&lt;ul&gt;
  &lt;li&gt;Peaches&lt;/li&gt;
  &lt;li&gt;Apples&lt;/li&gt;
  &lt;li&gt;Plums&lt;/li&gt;
&lt;/ul&gt;</pre>

<h3 id="CSS">CSS</h3>

<pre class="brush: css notranslate">ul li::marker {
  color: red;
  font-size: 1.5em;
}</pre>

<h3 id="Result">Result</h3>

<p>{{EmbedLiveSample('Examples')}}</p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS4 Pseudo-Elements', '#marker-pseudo', '::marker')}}</td>
   <td>{{Spec2('CSS4 Pseudo-Elements')}}</td>
   <td>No significant change.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS3 Lists', '#marker-pseudo', '::marker')}}</td>
   <td>{{Spec2('CSS3 Lists')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div>


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

<h2 id="See_also">See also</h2>

<ul>
 <li>HTML-элементы, у которые есть маркеры списка по умолчанию: {{HTMLElement("ol")}}, {{HTMLElement("li")}}, {{HTMLElement("summary")}}</li>
</ul>