Implement attributes for the <meter> element (#32230)

* Implement attributes for the meter element

* Remove checks for min < max before clamping
This commit is contained in:
shanehandley 2024-05-11 15:06:44 +10:00 committed by GitHub
parent c2325cd738
commit 2904c32e05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 139 additions and 743 deletions

View file

@ -1,149 +0,0 @@
[meter.html]
type: testharness
[Default values]
expected: FAIL
[Invalid floating-point number values]
expected: FAIL
[max < min]
expected: FAIL
[value < min]
expected: FAIL
[value > max]
expected: FAIL
[low < min]
expected: FAIL
[low > max]
expected: FAIL
[high < low]
expected: FAIL
[high > max]
expected: FAIL
[optimum < min]
expected: FAIL
[optimum > max]
expected: FAIL
[value must be 0 when a string is given]
expected: FAIL
[default value of min is 0]
expected: FAIL
[If min is not specified and value is smaller than the default value of min (i.e. 0), the actual value must be 0]
expected: FAIL
[default value of max is 1.0]
expected: FAIL
[If max is not specified and value is larger than the default value of max (i.e. 1.0), the actual value must be 1.0]
expected: FAIL
[If a value smaller than 1.0 is given to min and max is not specified, max must be the same value as its default value (i.e. 1.0)]
expected: FAIL
[If a value smaller than 1.0 is given to min, max is not specified, and value is larger than the default value of max (i.e. 1.0), the actual value must be 1.0]
expected: FAIL
[If a value larger than or equal to 1.0 is given to min and max is not specified, max must be the same value as min]
expected: FAIL
[If a value larger than or equal to 1.0 is given to min and max is not specified, the actual value must be the same value as min]
expected: FAIL
[If a value smaller than 0 is given to max and min is not specified, min must be be the same value as its default value (i.e. 0)]
expected: FAIL
[If a value smaller than 0 is given to max and min is not specified, max must be be the same value as the default value of min (i.e. 0)]
expected: FAIL
[If a value smaller than 0 is given to max and min is not specified, the actual value must be be the same value as the default value of min (i.e. 0)]
expected: FAIL
[If a value larger than or equal to 0 is given to max and min is not specified, max must be the same value as the default value of min (i.e. 0)]
expected: FAIL
[If a value larger than or equal to 0 is given to max and min is not specified, min must be the same value as its default value (i.e. 0)]
expected: FAIL
[If a value larger than or equal to 0 is given to max and min is not specified, the actual value must be the same value as the default value of min (i.e. 0)]
expected: FAIL
[min must be 0 when a string is given]
expected: FAIL
[If a string is given to min and value is smaller than the default value of min (i.e. 0), the actual value must be 0]
expected: FAIL
[max must be 1.0 when a string is given]
expected: FAIL
[If a string is given to max and value is larger than the default value of min (i.e. 1.0), the actual value must be 1.0]
expected: FAIL
[giving a string to low must not affect the actual value]
expected: FAIL
[high must equal max when a string is given to high]
expected: FAIL
[giving a string to high must not affect the actual value]
expected: FAIL
[value must not be smaller than min]
expected: FAIL
[value must not be larger than max]
expected: FAIL
[default low and high values equal min and max, respectively]
expected: FAIL
[default low and high values equal 0 and 1.0 respectively, if both low and high are not specified]
expected: FAIL
[low must not be smaller than min]
expected: FAIL
[low must not be larger than max]
expected: FAIL
[high must not be smaller than min]
expected: FAIL
[high must not be larger than max]
expected: FAIL
[If min is not specified, low must not be smaller than default value of min (i.e. 0)]
expected: FAIL
[If a value smaller than low is given to high, it must be set to the same value as low]
expected: FAIL
[If max is not specified, high must not be larger than default value of max (i.e. 1.0)]
expected: FAIL
[optimum smaller than min]
expected: FAIL
[optimum (smaller than min) must not affect min and the actual value]
expected: FAIL
[optimum smaller than max]
expected: FAIL
[optimum (larger than max) must not affect max and the actual value]
expected: FAIL
[default optimum value is the midpoint between min and max]
expected: FAIL