[compute-pressure] Move Options to observe? (#259)

kenchris has just created a new issue for https://github.com/w3c/compute-pressure:

== Move Options to observe? ==
If we want to do that, we should do it now.

Spec wise this should be easy

@arskama would this be hard implementation wise?

Do we recall why we move it to the ctor?

* ResizeObserver, PerformanceObserver, MutationObserver has it as part of observe

```[undefined](https://webidl.spec.whatwg.org/#idl-undefined) [observe](https://dom.spec.whatwg.org/#dom-mutationobserver-observe)([Node](https://dom.spec.whatwg.org/#node) target, optional [MutationObserverInit](https://dom.spec.whatwg.org/#dictdef-mutationobserverinit) options = {});```
```[undefined](https://webidl.spec.whatwg.org/#idl-undefined) [observe](https://drafts.csswg.org/resize-observer/#dom-resizeobserver-observe)([Element](https://dom.spec.whatwg.org/#element) [target](https://drafts.csswg.org/resize-observer/#dom-resizeobserver-observe-target-options-target), optional [ResizeObserverOptions](https://drafts.csswg.org/resize-observer/#dictdef-resizeobserveroptions) [options](https://drafts.csswg.org/resize-observer/#dom-resizeobserver-observe-target-options-options) = {});```
```[undefined](https://webidl.spec.whatwg.org/#idl-undefined) [observe](https://w3c.github.io/performance-timeline/#dom-performanceobserver-observe) (optional [PerformanceObserverInit](https://w3c.github.io/performance-timeline/#dom-performanceobserverinit) options = {});```

Please view or discuss this issue at https://github.com/w3c/compute-pressure/issues/259 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 4 April 2024 10:04:38 UTC