Skip to content

Commit

Permalink
Bug 1687719 [wpt PR 27256] - Update SlotAssignmentMode to name fr…
Browse files Browse the repository at this point in the history
…om `auto` to match the latest proposal, a=testonly

Automatic update from web-platform-tests
Update `SlotAssignmentMode` to `name` from `auto` to match the latest proposal (#27256)

[By the latest proposal](whatwg/dom#860),
`SlotAssignmentMode` value is changed to `name` from `auto`.

This change follows it.
--

wpt-commits: 875f4c73ec1122cd0ea05580f6b56fda0ef71cc7
wpt-pr: 27256

UltraBlame original commit: 84ac1dad84575a71ebc6ad87ce7a6f71d6a1f864
  • Loading branch information
marco-c committed Feb 10, 2021
1 parent e95548a commit 5f0e7f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
let tTree = createTestTree(test_basic);
assert_not_equals(tTree.host1.attachShadow({ mode: 'open', slotAssignment: 'manual'}),
null, 'slot assignment manual should work');
assert_not_equals(tTree.host2.attachShadow({ mode: 'open', slotAssignment: 'auto'}),
assert_not_equals(tTree.host2.attachShadow({ mode: 'open', slotAssignment: 'name'}),
null, 'slot assignment auto should work');
assert_throws_js(TypeError, () => {
tTree.host3.attachShadow({ mode: 'open', slotAssignment: 'exceptional' })},
Expand All @@ -25,7 +25,7 @@

<div id="test_errors">
<div id="host1">
<template data-mode="open" data-slot-assignment="auto">
<template data-mode="open" data-slot-assignment="name">
<slot id="s1"></slot>
</template>
<div id="c1"></div>
Expand Down

0 comments on commit 5f0e7f4

Please sign in to comment.