Skip to content
This repository was archived by the owner on Jul 30, 2019. It is now read-only.
This repository was archived by the owner on Jul 30, 2019. It is now read-only.

[question] about rules of setting max attribute after setting value in <progress> element #1024

@Jinjiang

Description

@Jinjiang

As https://w3c.github.io/html/sec-forms.html#the-progress-element says:

if the parsed value was greater than or equal to the maximum value, then the current value of the progress bar is the maximum value of the progress bar.

So in demo https://jsfiddle.net/r5gohw4w/
If we set 50 to value first (before setting 100 to max), the current value (50) is greater than the maximum value (1.0). So the current value will be set as 1. And then we set 100 to max so at the end the position of the <progress> element should be 1/100.

Is that correct? But in Safari & Chrome it always be 50/100.

Thanks.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions