-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<progress> bar rounding cut off when max != 100 #19065
Comments
Hi @bschaeffer! You appear to have posted a live example (http://s.bootply.com/render/X7zC8gJyLG), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
Revised example: http://www.bootply.com/E0twbUEAoy PS:
|
Hi @bschaeffer! You appear to have posted a live example (http://s.bootply.com/render/X7zC8gJyLG), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
Hi @bschaeffer! You appear to have posted a live example (http://s.bootply.com/render/E0twbUEAoy), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
This is stupid |
Fixed up example: http://www.bootply.com/HgDioZygC1 |
Looks like the current code assumed that Lines 46 to 52 in 6384789
Perhaps we should just always apply the |
I think always applying it would be the best option. #18835 discusses the potential to stacking and the main discussion is, are we planning on bringing stacking progress bars back? If we are then the progress element itself becomes irrelevant because it's non supporting. Dropping support for stacking and always rounding has my vote. |
Probably. But that doesn't imply dropping support for |
...just to point out that providing a sensible, live-updating and screenreader friendly way of providing stacked bars is...non-trivial ;) |
"Include a screenreader-only |
heh, indeed. in seriousness, if it's only a stack of 3-4 different bars, it possibly best to make it a visually hidden live region that reads the whole thing as one short sentence ("foo: 10%; bar: 23%; baz: 92.4%") but once you have more separate elements, it starts getting really tricky... |
…; to properly round corners of a full progress bar. Fixes #19065.
When a
<progress>
element'smax
attributes is over 100, the rounding is cutoff.For me, this issue popped up when I was displaying progress bars in a
table.table
element, but occurs outside of it as well. Here's an example:http://www.bootply.com/X7zC8gJyLG
Though most examples of
progress
elements on the web use a max value of 100, I could find no documentation that 100 is the max allowed value.The text was updated successfully, but these errors were encountered: