W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2018

[whatwg] <meter> rendering for case min == max

From: Mikko Rantalainen <mikko.rantalainen@peda.net>
Date: Mon, 19 Mar 2018 13:13:07 +0200
To: whatwg@whatwg.org
Message-ID: <c8f3f373-1e6e-c666-4889-9a90017084be@peda.net>
According to
following inequalities must hold for <meter>:

  minimum ≤ value ≤ maximum
  minimum ≤ low ≤ maximum (if low is specified)
  minimum ≤ high ≤ maximum (if high is specified)
  minimum ≤ optimum ≤ maximum (if optimum is specified)

This (and other prose) allows for following element

  <meter min=0 value=0 max=0>Nothing to be done</meter>


However, rendering engines (at least Blink and Gecko) disagree on
rendering of such an element. Blink renders this as an empty meter and
Gecko renders this as an full meter.

I'm slightly balanced for rendering this as full meter (Gecko style)
because I would guess such meter is usually displaying some kind of
progress ("total number of items completed for this exam") and if
nothing is to be done, the meter should be full. Another choice would be
to make this even more similar to <progress> which already handles
similar situation similarly between different user agents.

The spec should specify one way or the other for this corner case.

Received on Monday, 19 March 2018 11:14:33 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:46 UTC