A few questions about styling a meter element. Is there a way to :
- set the various colours (optimal, low, high)
- have it vertical
- animate a change in the value
A few questions about styling a meter element. Is there a way to :
- set the various colours (optimal, low, high)
- have it vertical
- animate a change in the value
?
A few questions about styling a meter element. Is there a way to :
- set the various colours (optimal, low, high)
- have it vertical
- animate a change in the value
?
Andrew Poulos wrote:
A few questions about styling a meter element. Is there a way to :
- set the various colours (optimal, low, high)
- have it vertical
- animate a change in the value
?
You should (have) do(ne) this:
<https://www.google.com/search?q=style+meter+element>
I did try that but with MDN warnings on things like
::webkit-meter-bar "This feature is non-standard and is not on a
standards track. Do not use it..." I didn't know if it was practical
to look for a CSS solution.
On 7/05/2021 7:40 am, Thomas 'PointedEars' Lahn wrote:
Andrew Poulos wrote:
A few questions about styling a meter element. Is there a way to :
- set the various colours (optimal, low, high)
- have it vertical
- animate a change in the value
?
You should (have) do(ne) this:
<https://www.google.com/search?q=style+meter+element>
I did try that but with MDN warnings on things like ::webkit-meter-bar
"This feature is non-standard and is not on a standards track. Do not
use it..." I didn't know if it was practical to look for a CSS solution.
Andrew Poulos wrote:
On 7/05/2021 7:40 am, Thomas 'PointedEars' Lahn wrote:
Andrew Poulos wrote:
A few questions about styling a meter element. Is there a way to :
- set the various colours (optimal, low, high)
- have it vertical
- animate a change in the value
?
You should (have) do(ne) this:
<https://www.google.com/search?q=style+meter+element>
I did try that but with MDN warnings on things like ::webkit-meter-bar
"This feature is non-standard and is not on a standards track. Do not
use it..." I didn't know if it was practical to look for a CSS solution.
I found this as the first hit:
<https://css-tricks.com/html5-meter-element/>
Note that it was last updated in 2015, but *still* works in Chromium “89.0.4389.114 (Developer Build) built on Debian 10.9, running on Debian 10.0 (64-bit)”.
Note also that it says:
| Do not use “meter” element to…
|
| 1. indicate the progress completion of a task (use “progress” element
| instead).
| 2. represent a scalar value of an arbitrary range — for example,
| to report a weight, or height of a person.
The caveat you read is sound. Whether you should do this depends on your use-case.
However, it should also be noted that WebCore and its forks have become
the dominant layout engines (with “Chrome” at a world-wide market share of
≈ 60 % across *all* platforms)¹, and features that were first introduced by WebKit for WebCore, like text shadows, gradients, transforms,
transitions, and animations, have become part of the CSS standard.
In that regard it is quite instructive to compare the current CSS standard against old entries in the WebKit blog. Formerly available only via the Internet Archive, it appears to have been fully restored to the redesigned WebKit site:
<https://webkit.org/blog/>
For example:
<https://webkit.org/blog/386/3d-transforms/>
(on 2009-07-16) vs. (now)
<https://developer.mozilla.org/en-US/docs/Web/CSS/transform>
___________
¹ <https://gs.statcounter.com/browser-market-share#monthly-202004-202104>
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 238:35:59 |
Calls: | 6,624 |
Files: | 12,172 |
Messages: | 5,319,942 |