Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions css-layout-api/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ which are related to layout.
The {{layoutWorklet}}'s [=worklet global scope type=] is {{LayoutWorkletGlobalScope}}.

<pre class='idl'>
[Exposed=Window]
partial namespace CSS {
[SameObject] readonly attribute Worklet layoutWorklet;
};
Expand Down
1 change: 1 addition & 0 deletions css-paint-api/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The {{paintWorklet}}'s [=worklet global scope type=] is {{PaintWorkletGlobalScop
The {{paintWorklet}}'s <a>worklet destination type</a> is <code>"paintworklet"</code>.

<pre class='idl'>
[Exposed=Window]
partial namespace CSS {
[SameObject] readonly attribute Worklet paintWorklet;
};
Expand Down
1 change: 1 addition & 0 deletions css-properties-values-api/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ dictionary PropertyDefinition {
DOMString initialValue;
};

[Exposed=Window]
partial namespace CSS {
undefined registerProperty(PropertyDefinition definition);
};
Expand Down
1 change: 1 addition & 0 deletions css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2382,6 +2382,7 @@ to create new numeric values much less verbosely
than using the constructors directly.

<xmp class=idl>
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
partial namespace CSS {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)], but also I think a partial with a wider exposure than the namespace itself is not legal in WebIDL so we should fix CSSOM and co too.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have realized that this would require a cross-spec PR to change the exposure of the different namespace CSS partial definitions, so that we declared them Window only explicitly. In addition, you have risen the concern of future partial definitions not being ware of the Worker exposure by default.

I'm already working on such PR, as it seems there was some agreement in issue 14229, but perhaps this needs more discussion ? When we merged the PR 61330) for the tests I thought this spec change was easier.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have submitted the PR 14245 to fix the CSSOM and co, as requested.

That PR for cssom-1 would make the explicit exposure of the css-typed-on-1 partial definition redundant; even more, if eventually the CSS namespace exposure in cssom-1 is shortened, the css-typed-om-1 declaration won't be compliant with the WebIDL subset-rule about partials.

CSSUnitValue number(double value);
CSSUnitValue percent(double value);
Expand Down