Skip to content

Commit

Permalink
Update SlotAssignmentMode to name from auto to match the latest…
Browse files Browse the repository at this point in the history
… proposal

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

This change follows it.
  • Loading branch information
tetsuharuohzeki committed Jan 20, 2021
1 parent e6f4013 commit e428470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shadow-dom/slots-imperative-slot-api.tentative.html
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 e428470

Please sign in to comment.