Skip to content

Review html/semantics/forms/the-input-element/range.html #107

Closed

Description

@nt1m

** Test List **

  • html/semantics/forms/the-input-element/range.html

** Rationale **

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.

Activity

  1. added
    test-change-proposal
    on Aug 12, 2022
  2. foolip commented on Aug 18, 2022

    @foolip
    Member

    @josepharhar can you take a look?

  3. nt1m commented on Aug 18, 2022

    @nt1m
    MemberAuthor

    @emilio @jgraham What do you think?

  4. josepharhar commented on Aug 18, 2022

    @josepharhar

    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

  5. annevk commented on Aug 24, 2022

    @annevk
    Member

    I think the test is slightly incorrect (and browsers appear correct) as I explained in web-platform-tests/wpt#35519 (comment). Hope that helps.

  6. nt1m commented on Sep 11, 2022

    @nt1m
    MemberAuthor

    The default scale factor is 1 even if step attribute is explicitly set to non-integer value, unless min attribute has non-integer value

    Does anyone have opinions on how to handle this subtest?

  7. foolip commented on Sep 15, 2022

    @foolip
    Member

    @nt1m that subtest seems wrong per spec. https://html.spec.whatwg.org/multipage/input.html#dom-input-step says that the step IDL attribute simply reflects the content attribute. The test description doesn't really make sense, and I think we should delete this subtest.

  8. foolip commented on Sep 15, 2022

    @foolip
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    test-change-proposal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions