dom/nodes/moveBefore/
159 / 164 WPT subtests passing
- Failed
- 5
- Timed out
- 0
- Not run
- 0
- Test files
- 70
- Blocking files
- 0
Chrome 156 / 164 WPT subtests passing on the same files, 2 blocking, 15 without a result
Tests
70 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Node-moveBefore.html 32 / 32 passingChrome 32 / 320 failedClean
32 passing subtests
- If node is a host-including inclusive ancestor of parent, then throw a HierarchyRequestError DOMException.
- If node is not a DocumentFragment, DocumentType, Element, Text, ProcessingInstruction, or Comment node, then throw a HierarchyRequestError DOMException.
- If node is a Text node and parent is a document, then throw a HierarchyRequestError DOMException.
- If node is a doctype and parent is not a document, then throw a HierarchyRequestError DOMException.
- If node is a DocumentFragment with multiple elements and parent is a document, then throw a HierarchyRequestError DOMException.
- If node is a DocumentFragment with an element and parent is a document with another element, then throw a HierarchyRequestError DOMException.
- If node is an Element and parent is a document with another element, then throw a HierarchyRequestError DOMException.
- If node is a doctype and parent is a document with another doctype, then throw a HierarchyRequestError DOMException.
- If node is a doctype and parent is a document with an element, then throw a HierarchyRequestError DOMException.
- Calling moveBefore with a non-Node first argument must throw TypeError.
- Calling moveBefore with second argument missing, or other than Node, null, or undefined, must throw TypeError.
- moveBefore() method does not exist on non-ParentNode Nodes
- moveBefore() on disconnected parent throws a HierarchyRequestError
- moveBefore() with disconnected target node throws a HierarchyRequestError
- moveBefore() on a cross-document target node throws a HierarchyRequestError
- moveBefore() into a Document throws a HierarchyRequestError
- moveBefore() CharacterData into a Document
- moveBefore() with node being an inclusive ancestor of parent throws a HierarchyRequestError
- moveBefore() with a non-{Element, CharacterData} throws a HierarchyRequestError
- moveBefore with an Element or CharacterData succeeds
- moveBefore on a paragraph's Text node child
- moveBefore with reference child whose parent is NOT the destination parent (context node) throws a NotFoundError.
- moveBefore() returns undefined
- Moving a node before itself should not move the node
- Moving a node from a disconnected container to a disconnected new parent without a shared ancestor throws a HIERARCHY_REQUEST_ERR
- Moving a node from a disconnected container to a disconnected new parent in the same tree succeeds
- Moving a node from a disconnected container to a disconnected new parent in the same tree succeeds,also across shadow-roots
- Moving a node from disconnected->connected throws a HIERARCHY_REQUEST_ERR
- Moving a node from connected->disconnected throws a HIERARCHY_REQUEST_ERR
- No custom element callbacks are run during disconnected moveBefore()
- Invalid node hierarchy with null old parent does not crash
- Move disconnected iframe does not crash
chrome-338071841-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/chrome-338071841-crash.html PASS none reported
No subtests were reported.
chrome-433696404-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/chrome-433696404-crash.html PASS none reported
No subtests were reported.
chrome-573058979-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/chrome-573058979-crash.html PASS none reported
No subtests were reported.
continue-css-animation-left.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Node.moveBefore should preserve CSS animation state (left)
continue-css-animation-transform.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Node.moveBefore should preserve CSS animation state (transform)
continue-css-transition-left-pseudo.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Node.moveBefore should preserve CSS transition state on pseudo-elements (left)
continue-css-transition-transform-pseudo.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Node.moveBefore should preserve CSS transition state on pseudo-elements (transform)
css-animation-commit-styles.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Calling commitStyles after Node.moveBefore should commit mid-transition value
css-transition-cross-document.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Moving a transition across documents should reset its state
css-transition-to-disconnected-document.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Moving an element with a transition to a disconnected document should reset the transitionm state
custom-element-move-reactions.html 7 / 7 passingChrome 7 / 70 failedClean
7 passing subtests
- the disconnected/connected callbacks should be called when no other callback is defined
- the element should stay connected during the callbacks
- When connectedMoveCallback is defined, it is called instead of disconnectedCallback/connectedCallback
- Reactions to atomic move are called in order of element, not in order of operation
- When connectedCallback is not defined, no crash
- When disconnectedCallback is not defined, no crash
- connectedMove runs when custom element is nested within a shadow root
fieldset-child-blur-event.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- The 'blur' event is not fired on children of HTMLFieldSetElement during moveBefore()
fieldset-child-date-input-blur-event.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Neither 'blur' nor 'focusout' is fired on a focused <input type=date> child of HTMLFieldSetElement during moveBefore()
fire-focusin-focusout.html 5 / 5 passingChrome 0 / 50 failedClean
5 passing subtests
- Don't fire focusin/out when reparenting focused element directly
- Don't fire focusin/out when reparenting an element that has focus within
- Don't fire focusin/out when moving to the same parent
- Don't fire focusin and then correct when moving to an inert subtree
- Don't fire focusin and then correct when moving to a tree that is made inert using style
focus-preserve.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- moveBefore() preserves focus when the focused element remains focusable
- moveBefore() preserves focus and a backward selection in a text input
- Focus is fixed up after moveBefore() moves the focused element into an inert subtree
- Focus is fixed up after moveBefore() moves the focused element into a hidden parent
- Focus is fixed up after moveBefore() moves an ancestor of the focused element into a hidden parent
focus-within.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- focus-within should be updated when reparenting focused element directly
- focus-within should be updated when reparenting an element that has focus within
- focus-within should remain the same when moving to the same parent
- :focus-within should be eventually up to date when moving to an inert subtree
- :focus-within should be eventually up to date when moving to a subtree that would become inert via style
form-associated-custom-element-reset.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Moving a non-form ID match updates custom control form owners in a document
- Moving a non-form ID match updates custom control form owners in a shadow tree
- Moving an ancestor of an ID match across a shadow boundary updates custom control form owners in both trees
- Moving a custom control without an ID across a shadow boundary resets its form owner
fullscreen-preserve.html 1 / 1 passingChrome 0 / 10 failedClean
1 passing subtest
- Document#fullscreenElement
hover-style-update.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Element loses hover when moved to different position
- Hover works immediately after moved
iframe-document-preserve.window.js 7 / 7 passingChrome 7 / 70 failedClean
7 passing subtests
- moveBefore(): about:blank iframe's document is preserved
- moveBefore(): simple same-origin document is preserved
- moveBefore(): cross-origin iframe is preserved: remove new parent
- moveBefore(): cross-origin iframe is preserved: remove self
- moveBefore(): cross-origin iframe is preserved: remove self via replaceChildren()
- moveBefore(): cross-origin iframe is preserved: remove self via innerHTML
- window.frames ordering does not change due to moveBefore()
input-moveBefore-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/input-moveBefore-crash.html PASS none reported
No subtests were reported.
listed-form-element-reset.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Listed form element form owner is reset when a new form is moved closer before the listed element
- Moving a non-form ID match updates form owners in a document
- Moving a non-form ID match updates form owners in a shadow tree
- Moving an ancestor of an ID match across a shadow boundary updates form owners in both trees
- Moving an input without an ID across a shadow boundary resets its form owner
- Moving an ancestor without an ID across a shadow boundary resets a descendant input's form owner
live-range-updates.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- moveBefore still results in range startContainer snapping up to parent when startContainer is moved
- moveBefore still causes range startContainer to snap up to parent, when startContainer ancestor is moved
- moveBefore still causes range endContainer to snap up to parent, when endContainer ancestor is moved
modal-dialog.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- when reparenting a modal dialog, the dialog should stay modal
moveBefore-child-list-selector-invalidation.html 9 / 9 passingChrome 9 / 90 failedClean
9 passing subtests
- :has(> .marked) on the old and new parents
- :empty on the old and new parents when moving an element
- :empty on the old and new parents when moving a Text node
- :first-child on siblings in the old and new parents
- :last-child on siblings in the old and new parents
- :nth-child(2) on later siblings in the old and new parents
- :nth-last-child(2) on earlier siblings in the old and new parents
- .a + .b on the next siblings in the old and new parents
- :first-child when reordering children of the same parent
moveBefore-custom-element-registry.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- An element with the global registry keeps it when moved into a shadow root with a scoped registry
- An element with a scoped registry keeps it when moved out of its shadow root
- An element with a scoped registry keeps it when moved into a shadow root with a different scoped registry
- An element with the global registry isn't upgraded by a scoped registry when moved into its shadow root
moveBefore-dir.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- moveBefore() correctly updates the computed dir for moved nodes
moveBefore-disconnected-id-map.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- moveBefore() of an element with an id in a disconnected tree leaves the document's id map alone
- moveBefore() of an element with a name in a disconnected tree leaves the document's name maps alone
- moveBefore() into a shadow tree inside a disconnected tree adds the element to the shadow root's id map
- moveBefore() out of a shadow tree inside a disconnected tree removes the element from the shadow root's id map
moveBefore-id-map.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- moveBefore() correctly updates id map when moving into shadow root
- moveBefore() correctly updates window map when moving id-mapped element into shadow root
- moveBefore() correctly updates id map when moving between shadow roots
- moveBefore() correctly updates id map when swapping elements with duplicate ids
moveBefore-iframe-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-iframe-crash.html PASS none reported
No subtests were reported.
moveBefore-image-map-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-image-map-crash.html PASS none reported
No subtests were reported.
moveBefore-image-map.html 1 / 3 passingChrome 3 / 32 failedWith failures
- ¶
FAILAn image stops using a map that is moved into a shadow root
assert_equals: the image uses the map before the move expected Element node <area shape="rect" coords="0,0,100,100" href="#map1"></area> but got null
- ¶
FAILAn image moved into a shadow root uses a map in the shadow root
assert_equals: the image uses the map in its new tree expected Element node <area shape="rect" coords="0,0,100,100" href="#map2"></area> but got null
1 passing subtest
- An area whose image was moved into a shadow root is no longer focusable
moveBefore-img-usemap-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-img-usemap-crash.html PASS none reported
No subtests were reported.
moveBefore-into-display-none.html 0 / 1 passingChrome 1 / 11 failedExempt
Exempt from the 0.1 gate until a renderer answers geometry
both assertions read span.getBoundingClientRect().width - before the move (> 0) and after moving the span into a display:none parent (0); with no renderer the span has no box, so the first reads 0 and the test stops there (Chrome 157 and Firefox 160 pass 1/1; Safari 27.2 has no moveBefore)
- Failing assertion
- assert_greater_than: expected a number greater than 0 but got 0
- ¶
FAILmoveBefore() into a display: none parent stops rendering the moved node
assert_greater_than: expected a number greater than 0 but got 0
moveBefore-lang.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- moveBefore() correctly updates the computed lang for moved nodes
moveBefore-legend-input-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-legend-input-crash.html PASS none reported
No subtests were reported.
moveBefore-name-map.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- moveBefore() correctly updates name map when moving into shadow root
- moveBefore() correctly updates window map
- moveBefore() correctly updates name map ordering in document
moveBefore-nodeiterator.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- moveBefore() runs NodeIterator pre-remove steps
moveBefore-optgroup-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-optgroup-crash.html PASS none reported
No subtests were reported.
moveBefore-optgroup.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- Moving an optgroup between selects moves its options with it
- An optgroup moved out of a select can be inserted into another select
- An optgroup moved out of a select renders like one inserted outside a select
moveBefore-option-recalc-style.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- moveBefore() of an option element between two selects
moveBefore-out-of-flow-sibling-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-out-of-flow-sibling-crash.html PASS none reported
No subtests were reported.
moveBefore-radio-groups.html 8 / 8 passingChrome 8 / 80 failedClean
8 passing subtests
- A radio moved into a shadow root leaves the document's radio button group
- A radio moved into a shadow root joins the shadow root's radio button group
- A radio moved out of a shadow root joins the document's radio button group
- Required radio group validity is updated when the checked radio moves to another tree
- A required radio moved into a group with a checked radio matches :valid
- A required radio moved into a group without a checked radio matches :invalid
- Radios with a form owner stay in the form's group when moved into a shadow root
- A radio moved within the same tree stays in its radio button group
moveBefore-range-iframe-crash.html none reportedChrome —0 failedExempt
Exempt from the 0.1 gate until a renderer answers geometry
the test ends only in the slider's input event, which a test_driver pointer drag from 40% of the <input type=range>'s width (origin: slider, its in-view center point) fires only by changing the value; the value a drag sets comes from the pointer's position along the range's track box, which no renderer answers (getBoundingClientRect is 0x0), so no input event and the crashtest never finishes (Chrome PASS, Firefox PASS, Safari TIMEOUT at 2358bd4835)
- Failing assertion
- TIMEOUT: Crashtest did not finish (load, then test-wait) within 10000ms
Harness message
Crashtest did not finish (load, then test-wait) within 10000ms
/dom/nodes/moveBefore/moveBefore-range-iframe-crash.html TIMEOUT none reported
Crashtest did not finish (load, then test-wait) within 10000ms
No subtests were reported.
moveBefore-select-hr-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-select-hr-crash.html PASS none reported
No subtests were reported.
moveBefore-selector-matching.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- moveBefore() should invalidate target when descendant selector changes
moveBefore-shadow-boundary-id-change.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Changing the id of an element moved into a shadow root only updates the shadow root's id map
- Changing the id of an element moved out of a shadow root updates the document's id and name maps
moveBefore-shadow-host-id-map.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- moveBefore() of a shadow host leaves the id map of its shadow tree alone
- moveBefore() of an ancestor of a shadow host leaves the id map of its shadow tree alone
- moveBefore() of a <select> element leaves the document's id and name maps alone
- moveBefore() of a <details> element leaves the document's id and name maps alone
moveBefore-shadow-root.html 1 / 3 passingChrome 1 / 32 failedWith failures
- ¶
FAILmoveBefore() into ShadowRoot, shadow host, and <slot> invalidates style and detaches unslotted elements
assert_greater_than: expected a number greater than 0 but got 0
- ¶
FAILmoveBefore() preserves active fallback state and invalidates style across same-task slot roundtrips
assert_greater_than: expected a number greater than 0 but got 0
1 passing subtest
- moveBefore() is allowed in ShadowRoots (i.e., connected DocumentFragments)
moveBefore-slotted-element-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-slotted-element-crash.html PASS none reported
No subtests were reported.
moveBefore-slotted-text-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-slotted-text-crash.html PASS none reported
No subtests were reported.
moveBefore-subframe-count-crash.html none reportedChrome —0 failedClean
/dom/nodes/moveBefore/moveBefore-subframe-count-crash.html PASS none reported
No subtests were reported.
mutation-observer-moved-subtree.window.js 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- A subtree moved out of an observed subtree by moveBefore() is observed until mutation observers are notified
mutation-observer.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- [Connected move] MutationObserver removal + insertion is tracked by moveBefore()
- [Disconnected move] MutationObserver removal + insertion is tracked by moveBefore()
nonce.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Element nonce content attribute is not cleared after move
object-crash-regression.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Moving an object element does not crash
pointer-events.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Pointer capture should not be released when moving
popover-preserve.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- when reparenting an open popover, it shouldn't be closed automatically
preserve-render-blocking-script.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- A moved script should keep its render-blocking state
preserve-render-blocking-style.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- A moved script should keep its render-blocking state
relevant-mutations.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Moving <source> out of <picture> triggers a relevant mutation on sibling <img>
- Moving <img> into a <picture> triggers a relevant mutation on the <img>, loading <source>
role-updates-after-move.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- header elements role should become sectionheader when moved into a section
script-move-before.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Synchronous script execution in HTMLScriptElement during moveBefore should be blocked
- Synchronous script execution in SVGScriptElement during moveBefore should be blocked
select-option-optgroup.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Option selectedness is updated on option and optgroup DOM moves
- Selected index is updated when an option moves within the same select
slotchange-events.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Moving default content into a slot fires 'slotchange' event
- Moving default content out of a slot fires 'slotchange' event
- Moving a slottable into and out out of a custom element fires 'slotchange' event
- Moving a slot runs the assign slottables algorithm
style-applies.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Moving a style inside the document should not affect whether it's applied
stylesheet-cascade-order.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Moving loaded link stylesheets updates their cascade order
stylesheet-no-refetch.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Moving a loaded link stylesheet preserves its resource
throws-exception.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- moveBefore() on a cross-document target node