Skip to content

Commit ddfa79d

Browse files
committed
Add [Exposed=Window] to interfaces
From w3c#2342: WebIDL now defines that interfaces include the Exposed extended attribute even in the case where it is only exposed to Window. The following interfaces previously omitted the Exposed extended attribute: NamedFlow, NamedFlowMap, CSSPseudoElement, CSSPseudoElementList, CSSKeyframeEffectReadOnly, TransitionEvent
1 parent 034b063 commit ddfa79d

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

css-animations-2/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,8 @@ updating the set of keyframes returned by
580580
Something like,
581581
582582
<pre class="idl">
583-
[Constructor (CSSOMString keyframesName, CSSOMString defaultEasing)]
583+
[Exposed=Window,
584+
Constructor (CSSOMString keyframesName, CSSOMString defaultEasing)]
584585
interface CSSKeyframeEffectReadOnly : KeyframeEffectReadOnly {
585586
readonly attribute CSSOMString keyframesName;
586587
readonly attribute CSSOMString defaultEasing;

css-pseudo-4/Overview.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@ Interface CSSPseudoElement</h3>
820820
</div>
821821

822822
<pre class="idl">
823+
[Exposed=Window]
823824
interface CSSPseudoElement {
824825
readonly attribute CSSOMString <a href="#dom-csspseudochild-type">type</a>;
825826
readonly attribute <a href="https://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration">CSSStyleDeclaration</a> <a href="#dom-csspseudochild-style">style</a>;
@@ -866,6 +867,7 @@ Interface CSSPseudoElementList</h3>
866867
of <code>CSSPseudoElement</code> instances.
867868

868869
<pre class="idl">
870+
[Exposed=Window]
869871
interface CSSPseudoElementList {
870872
readonly attribute unsigned long <a href="#dom-csspseudochildlist-length">length</a>;
871873
CSSPseudoElement <a href="#dom-csspseudochildlist-item">item</a>(unsigned long index);

css-regions-1/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,8 @@ The NamedFlow interface</h3>
10941094
and is read-only.
10951095

10961096
<pre class="idl">
1097-
[MapClass(CSSOMString, NamedFlow)] interface NamedFlowMap {
1097+
[Exposed=Window,
1098+
MapClass(CSSOMString, NamedFlow)] interface NamedFlowMap {
10981099
NamedFlow? get(CSSOMString flowName);
10991100
boolean has(CSSOMString flowName);
11001101
NamedFlowMap set(CSSOMString flowName, NamedFlow flowValue);
@@ -1140,6 +1141,7 @@ The NamedFlow interface</h3>
11401141
would be false.
11411142

11421143
<pre class="idl">
1144+
[Exposed=Window]
11431145
interface NamedFlow : EventTarget {
11441146
readonly attribute CSSOMString name;
11451147
readonly attribute boolean overset;

css-transitions-1/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,8 @@ associated with transitions.
11021102
### IDL Definition ### {#interface-transitionevent-idl}
11031103

11041104
<pre class="idl">
1105-
[Constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict)]
1105+
[Exposed=Window,
1106+
Constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict)]
11061107
interface TransitionEvent : Event {
11071108
readonly attribute CSSOMString propertyName;
11081109
readonly attribute float elapsedTime;

0 commit comments

Comments
 (0)