aboutsummaryrefslogtreecommitdiff
path: root/files/ca/web/css/_doublecolon_-moz-progress-bar/index.html
blob: 579c5d5934fc49868a4276d8c56639e7ca5f4120 (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
---
title: '::-moz-progress-bar'
slug: 'Web/CSS/::-moz-progress-bar'
tags:
  - CSS
  - 'CSS:Mozilla Extensions'
  - NeedsCompatTable
  - Non-standard
  - Pseudo-element
  - Reference
translation_of: 'Web/CSS/::-moz-progress-bar'
---
<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>::-moz-progress-bar</code></strong> és una <a href="/en-US/docs/Web/CSS/Mozilla_Extensions">estensió de Mozilla</a> que representa la barra de progrés dins d'un element {{HTMLElement("progress")}}. (La barra representa la quantitat de progrés que s'ha realitzat).</p>

<h2 id="Sintaxi">Sintaxi</h2>

<pre class="syntaxbox">{{csssyntax}}</pre>

<h2 id="Exemples">Exemples</h2>

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

<pre class="brush:html;">&lt;progress value="30" max="100"&gt;30%&lt;/progress&gt;
&lt;progress max="100"&gt;Indeterminate&lt;/progress&gt;</pre>

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

<pre class="brush: css">::-moz-progress-bar {
  background-color: red;
}

/* Force indeterminate bars to have zero width */
:indeterminate::-moz-progress-bar {
  width: 0;
}</pre>

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

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

<p><span class="short_text" id="result_box" lang="ca"><span>La primera barra des de dalt hauria de ser aix</span></span>í:</p>

<p><img alt="Custom styled progress bar" class="default internal" src="/@api/deki/files/5387/=redbar.png"></p>

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

<ul>
 <li>{{HTMLElement("progress")}}</li>
 <li>{{ cssxref("::-ms-fill") }}</li>
 <li>{{ cssxref("::-webkit-progress-bar") }}</li>
 <li>{{ cssxref("::-webkit-progress-value") }}</li>
 <li>{{ cssxref("::-webkit-progress-inner-element") }}</li>
</ul>