Skip to content

Commit

Permalink
Bug 1723882 [wpt PR 29889] - Fix an element directionality, a=testonly
Browse files Browse the repository at this point in the history
Automatic update from web-platform-tests
Fix an element directionality

This CL fixes the bugs raised up during the discussion of slots
at whatwg/html#3699.
 - Resolve the light tree element's directionality in the light tree
   and do not walk into the shadow tree for encapsulation.
 - Resolve the element's directionality when there is not a slotted
   node.

Bug: 1236384
Change-Id: Id22aa3e5b624a2e3234c645e198749360f3a050d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3066807
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
Cr-Commit-Position: refs/heads/master@{#909242}

--

wpt-commits: 64bba2c43109cc8a3173ac45d4216fa65624d0bc
wpt-pr: 29889
  • Loading branch information
MyidShin authored and moz-wptsync-bot committed Aug 14, 2021
1 parent f058f8e commit 4561af2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
test(() => {
assert_equals(getComputedStyle(host1.firstChild).direction, "rtl");
assert_equals(getComputedStyle(root2.querySelector("span")).direction, "rtl");
assert_equals(getComputedStyle(host3).direction, "rtl");
assert_equals(getComputedStyle(host3).direction, "ltr");
assert_equals(getComputedStyle(root4.querySelector("span")).direction, "rtl");
assert_equals(getComputedStyle(root5.querySelector("span")).direction, "rtl");
}, 'Slots: Directionality');
Expand Down

0 comments on commit 4561af2

Please sign in to comment.