aboutsummaryrefslogtreecommitdiff
path: root/files/ca/web/css/_doublecolon_-webkit-progress-value/index.html
blob: 95235bb4cc6faf9cb6c1f0af87170d94235e93bb (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
title: '::-webkit-progress-value'
slug: 'Web/CSS/::-webkit-progress-value'
tags:
  - CSS
  - Non-standard
  - Pseudo-element
  - Reference
translation_of: 'Web/CSS/::-webkit-progress-value'
---
<div>{{CSSRef}}{{Non-standard_header}}</div>

<p>El <a href="/en-US/docs/Web/CSS/Pseudo-elements">pseudo-element</a> <a href="/en-US/docs/Web/CSS">CSS</a> <strong><code>::-webkit-progress-value</code></strong>  representa la part emplenada de la barra d'un element {{HTMLElement("progress")}}. És un fill del pseudo-element {{cssxref("::-webkit-progress-bar")}}.</p>

<div class="note">
<p><strong>Nota:</strong> Per tal de permetre que <code>::-webkit-progress-value</code> tingui efecte, {{cssxref("-webkit-appearance")}} necessita ser ajustat a none en l'element <code>&lt;progress&gt;</code>.</p>
</div>

<h2 id="Especificacions">Especificacions</h2>

<p>No forma part de cap especificació. Es tracta d'un pseudo-element propietari, específic en WebKit/Blink.</p>

<h2 id="Exemple">Exemple</h2>

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

<pre class="brush: html">&lt;progress value="10" max="50"&gt;
</pre>

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

<pre class="brush: css">progress {
  -webkit-appearance: none;
}

::-webkit-progress-value {
  background-color: orange;
}</pre>

<h3 id="Resultat">Resultat</h3>

<p>{{EmbedLiveSample("Example", 200, 50)}}</p>

<p><span id="result_box" lang="ca"><span>Una barra de progrés que utilitzi aquest estil pot semblar una cosa així</span></span> :</p>

<p><img alt="" src="https://mdn.mozillademos.org/files/13490/progress-value.png" style="height: 60px; width: 249px;"></p>

<h2 id="Navegadors_compatibles">Navegadors compatibles</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Descripció</th>
   <th>Firefox (Gecko)</th>
   <th>Chrome</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Suport bàsic</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Descripció</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Android</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Suport bàsic</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="Vegeu_també">Vegeu també</h2>

<ul>
 <li>Els pseudo-elements utilitzats per WebKit/Blink per donar estil a altres parts d'un element {{HTMLElement("progress")}}:
  <ul>
   <li>{{ cssxref("::-webkit-progress-bar") }}</li>
   <li>{{ cssxref("::-webkit-progress-inner-element") }}</li>
  </ul>
 </li>
 <li>{{ cssxref("::-moz-progress-bar") }}</li>
 <li>{{ cssxref("::-ms-fill") }}</li>
</ul>