MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

::-webkit-progress-value

This translation is incomplete. Please help translate this article from English.

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Sumari

El pseudo-element CSS ::-webkit-progress-value  representa la part emplenada de la barra d'un element <progress>. És un fill del pseudo-element ::-webkit-progress-bar.

Nota: Per tal de permetre que ::-webkit-progress-value tingui efecte, -webkit-appearance necessita ser ajustat a none en l'element <progress>.

Especificacions

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

Exemple

Contingut CSS

progress {
  -webkit-appearance: none;
}

::-webkit-progress-value {
  background-color: orange;
}

Contingut HTML

<progress value="10" max="50">

Sortida

Una barra de progrés a través d'aquest estil podria ser com això:

Característica Firefox (Gecko) Chrome Internet Explorer Opera Safari
Suport bàsic No support (Yes) No support (Yes) (Yes)
Característica Firefox Mobile (Gecko) Android IE Phone Opera Mobile Safari Mobile
Suport bàsic No support (Yes) No support (Yes) (Yes)

Veure

Document Tags and Contributors

 Contributors to this page: Legioinvicta
 Last updated by: Legioinvicta,