diff --git a/html/dom/elements/global-attributes/dir-auto-dynamic-changes.window.js b/html/dom/elements/global-attributes/dir-auto-dynamic-changes.window.js index d57d8664dfaff8c..28be3f9936ef374 100644 --- a/html/dom/elements/global-attributes/dir-auto-dynamic-changes.window.js +++ b/html/dom/elements/global-attributes/dir-auto-dynamic-changes.window.js @@ -371,12 +371,9 @@ test(() => { `); let slot = shadow.querySelector("slot"); - assert_equals(html_direction(slot), "rtl"); - let inp = tree.querySelector("input"); - inp.value = "abc"; assert_equals(html_direction(slot), "ltr"); tree.remove(); -}, 'dir=auto slot is updated by text in value of input element children'); +}, 'dir=auto slot is not affected by text in value of input element children'); test(() => { let [tree, shadow] = setup_tree(` diff --git a/html/dom/elements/global-attributes/dir-slots-directionality.html b/html/dom/elements/global-attributes/dir-slots-directionality.html index c0a11ba9a90949b..f482d44b3329cc0 100644 --- a/html/dom/elements/global-attributes/dir-slots-directionality.html +++ b/html/dom/elements/global-attributes/dir-slots-directionality.html @@ -173,9 +173,9 @@ let div = tree.querySelector("#root"); assert_equals(html_direction(div), "ltr"); let slot = shadow.querySelector("slot"); - assert_equals(html_direction(slot), "rtl"); + assert_equals(html_direction(slot), "ltr"); tree.remove(); -}, 'dir=auto slot ignores dir attribute of assigned nodes'); +}, 'dir=auto slot ignores assigned nodes with dir attribute'); test(() => { let [tree, shadow] = setup_tree(` @@ -188,9 +188,9 @@ `); let slot = shadow.querySelector("slot"); - assert_equals(html_direction(slot), "rtl"); + assert_equals(html_direction(slot), "ltr"); tree.remove(); -}, 'dir=auto slot considers text in bdi assigned nodes'); +}, 'dir=auto slot ignores text in bdi assigned nodes'); test(() => { let [tree, shadow] = setup_tree(` @@ -205,13 +205,13 @@ let inp = tree.querySelector("input"); assert_equals(html_direction(inp), "ltr"); let slot = shadow.querySelector("slot"); - assert_equals(html_direction(slot), "rtl"); + assert_equals(html_direction(slot), "ltr"); tree.remove(); [tree, shadow] = setup_tree(`
- + اختبر
@@ -221,8 +221,8 @@ inp = tree.querySelector("input"); assert_equals(html_direction(inp), "ltr"); slot = shadow.querySelector("slot"); - assert_equals(html_direction(slot), "ltr", "no strong character in value counts as ltr"); + assert_equals(html_direction(slot), "rtl"); tree.remove(); -}, 'dir=auto slot considers text in value of input element children'); +}, 'dir=auto slot ignores text in value of input element children');