W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

[csswg-drafts] Pull Request: [resize-observer-1] Align with Web IDL specification

From: autokagami via GitHub <sysbot+gh@w3.org>
Date: Tue, 18 Aug 2020 19:27:25 +0000
To: public-css-archive@w3.org
Message-ID: <pull_request.opened-469692390-1597778844-sysbot+gh@w3.org>
autokagami has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [resize-observer-1] Align with Web IDL specification ==
This is an automated pull request to align the spec with the latest Web IDL specification.

Currently the autofix might introduce some awkward code formatting, so please feel free to modify the formatting.

Please file an issue on https://github.com/saschanaz/webidl-updater/issues/new if you think this PR is invalid or should be enhanced.

The following is the validation messages from webidl2.js, which may help understanding this PR:

```
Validation error at line 4 in resize-observer-1,2:
    void observe(Element target
    ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 4 in resize-observer-1,2, inside `interface ResizeObserver -> operation observe -> argument options`:
Element target, optional ResizeObserverOptions options);
                                               ^ Optional dictionary arguments must have a default value of `{}`.

Validation error at line 5 in resize-observer-1,2:
    void unobserve(Element target
    ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 6 in resize-observer-1,2:
    void disconnect();
    ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 1 in resize-observer-1,3:
callback ResizeObserverCallback = void (sequence<ResizeObserverEntry
                                  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 1 in resize-observer-1,5, inside `interface ResizeObserverSize`:
interface ResizeObserverSize {
          ^ Interfaces must have `[Exposed]` extended attribute. To fix, add, for example, `[Exposed=Window]`. Please also consider carefully if your interface should also be exposed in a Worker scope. Refer to the [WebIDL spec section on Exposed](https://heycam.github.io/webidl/#Exposed) for more information.
```

See https://github.com/w3c/csswg-drafts/pull/5450


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 18 August 2020 19:27:27 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC