Closed Bug 1505686 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 13978 - html: Fix an issue of type-change-state.html about selectionDirection="none"

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 13978 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/13978
Details from upstream follow.

Kent Tamura <tkent@chromium.org> wrote:
>  html: Fix an issue of type-change-state.html about selectionDirection="none"
>  
>  type-change-state.html contains assertions for the following operation in [1]:
>  > ..., and set its selection direction to "none".
>  
>  However it had an issue that the assertions checked if
>  input.selectionDirection was "none". According to [2],
>  input.selectionDirection can be "forward" on specific platforms.
>  
>  > update the element's selection direction to the given direction, unless
>  > the direction is "none" and the platform does not support that direction;
>  > in that case, update the element's selection direction to "forward".
>  
>  [1] https://html.spec.whatwg.org/multipage/input.html#the-input-element:set-the-selection-direction
>  [2] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#set-the-selection-direction
>  
>  Change-Id: Idc1a97fbb2036e351a788a1f758b3239308d8c71
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1322264
>  WPT-Export-Revision: 68a9565f50cc72054dc6de8b6def863325b1b330
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 1 tests and 462 subtests
OK     : 1
PASS   : 431
FAIL   : 31
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9bfcf3a7c096
[wpt PR 13978] - html: Fix an issue of type-change-state.html about selectionDirection="none", a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/af6858c044c1
[wpt PR 13978] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/9bfcf3a7c096
https://hg.mozilla.org/mozilla-central/rev/af6858c044c1
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.