You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not suggesting any concrete action yet, but we should review html/semantics/forms/the-input-element/range.html which has subtests failing across all 3 browsers. Either this needs a spec change to reflect current browsers behavior, either we keep the test as it is. @cdumez has mentioned it's pretty simple to implement these changes in WebKit, but it would leave WebKit uninteroperable with the other 2 browser vendors.
cc @domenic and @annevk to check if there is any spec work needed here.
Thanks for finding this! I am generally in favor of changing the tests/spec to match the browsers when the browsers are all doing the same thing.
The "The default scale factor is 1 even if step attribute is explicitly set to non-integer value, unless min attribute has non-integer value" test was added by @tomoyukilabs here: web-platform-tests/wpt#167
If I'm reading it correctly, the test description suggests that step should be forced to 1 when the min attribute has an integer value. The test does seem to do this by setting min to 5, but I'm not sure what the motivation is. I've never seen any bugs filed about this in chromium. Perhaps we could just remove the test.
The "Skip ASCII whitespace within input" test was added by @nox here: web-platform-tests/wpt#9084
The "123" value is larger than the default maximum of range inputs, so this test could be fixed by just changing the "123" to "50" or something. I've opened a PR to do this here: web-platform-tests/wpt#35519
Activity
foolip commentedon Aug 18, 2022
@josepharhar can you take a look?
nt1m commentedon Aug 18, 2022
@emilio @jgraham What do you think?
Fix "Skip ASCII whitespace within input" test
josepharhar commentedon Aug 18, 2022
Thanks for finding this! I am generally in favor of changing the tests/spec to match the browsers when the browsers are all doing the same thing.
The "The default scale factor is 1 even if step attribute is explicitly set to non-integer value, unless min attribute has non-integer value" test was added by @tomoyukilabs here: web-platform-tests/wpt#167
If I'm reading it correctly, the test description suggests that step should be forced to 1 when the min attribute has an integer value. The test does seem to do this by setting min to 5, but I'm not sure what the motivation is. I've never seen any bugs filed about this in chromium. Perhaps we could just remove the test.
The "Skip ASCII whitespace within input" test was added by @nox here: web-platform-tests/wpt#9084
The "123" value is larger than the default maximum of range inputs, so this test could be fixed by just changing the "123" to "50" or something. I've opened a PR to do this here: web-platform-tests/wpt#35519
annevk commentedon Aug 24, 2022
I think the test is slightly incorrect (and browsers appear correct) as I explained in web-platform-tests/wpt#35519 (comment). Hope that helps.
Fix "Skip ASCII whitespace within input" test (#35519)
Bug 1785899 [wpt PR 35519] - Fix "Skip ASCII whitespace within input"…
nt1m commentedon Sep 11, 2022
Does anyone have opinions on how to handle this subtest?
foolip commentedon Sep 15, 2022
@nt1m that subtest seems wrong per spec. https://html.spec.whatwg.org/multipage/input.html#dom-input-step says that the
stepIDL attribute simply reflects the content attribute. The test description doesn't really make sense, and I think we should delete this subtest.Remove "default scale factor is 1" range.html subtest
foolip commentedon Sep 15, 2022
Fixed by web-platform-tests/wpt#35914