mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make Element::attach_shadow() and ShadowRoot closer to spec (#36024)
Signed-off-by: batu_hoang <longvatrong111@gmail.com>
This commit is contained in:
parent
11d47558b3
commit
db74179dc8
18 changed files with 117 additions and 158 deletions
|
@ -90,10 +90,10 @@ interface Element : Node {
|
|||
|
||||
dictionary ShadowRootInit {
|
||||
required ShadowRootMode mode;
|
||||
// boolean delegatesFocus = false;
|
||||
boolean delegatesFocus = false;
|
||||
SlotAssignmentMode slotAssignment = "named";
|
||||
boolean clonable = false;
|
||||
// boolean serializable = false;
|
||||
boolean serializable = false;
|
||||
};
|
||||
|
||||
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
[Exposed=Window]
|
||||
interface ShadowRoot : DocumentFragment {
|
||||
readonly attribute ShadowRootMode mode;
|
||||
// readonly attribute boolean delegatesFocus;
|
||||
readonly attribute boolean delegatesFocus;
|
||||
readonly attribute SlotAssignmentMode slotAssignment;
|
||||
readonly attribute boolean clonable;
|
||||
// readonly attribute boolean serializable;
|
||||
readonly attribute boolean serializable;
|
||||
readonly attribute Element host;
|
||||
attribute EventHandler onslotchange;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue