progress element – Mozilla Developer Network

Posted: August 13, 2017 at 2:07 am

The HTML element represents the completion progress of a task, typically displayed as a progress bar.

This element includes the global attributes.

NOTE: The minimum value is always 0 and the min attribute is not allowed for the progress element. You can use the -moz-orient CSS property to specify whether the progress bar should be rendered horizontally (the default) or vertically.

NOTE:The :indeterminate pseudo-class can be used to match against indeterminate progress bars.To change the progress bar to indeterminate after giving it a value you must remove the value attribute with element.removeAttribute("value")

On Windows 7, the resulting progress looks like this:

See -moz-orient.

[1] Prior to Gecko 14.0 (Firefox 14.0 / Thunderbird 14.0 / SeaMonkey 2.11), the element was incorrectly classified as a form element, and therefore had a form attribute. This has been fixed.

[2] Gecko provides the ::-moz-progress-bar pseudo-element, which lets you style the part of the interior of the progress bar representing the amount of work completed so far.

[3] Safari on iOS does not support indeterminate progress bars (they are rendered like 0%-completed progress bars).

Was this article helpful?

Go here to see the original:

progress element - Mozilla Developer Network

Related Posts