progress – progress indicator NEW # T
The
progress
element represents the completion progress of a task.
Additional constraints and admonitions #
-
The element progress must not
appear as a descendant of the progress element.
-
The value of the value attribute must be less than or equal to
the value of the max attribute.
-
The value of the value attribute must be less than or equal to
one when the max attribute is absent.
Permitted parent elements #
any element that can contain
phrasing elements
DOM interface #
interface HTMLProgressElement : HTMLElement {
attribute double value;
attribute double max;
readonly attribute double position;
readonly attribute HTMLFormElement form;
readonly attribute NodeList labels;
};
Typical default display properties #
progress {
-webkit-block-flow: tb !important; }
progress {
display: inline-block;
height: 1em;
width: 10em;
vertical-align: -0.2em;
background-color: gray; }