[csswg-drafts] [css-scroll-snap-2] SnapEvent interface: Why are SnapEventInit fields optional and nullable? (#13487)

denvercoder21 has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scroll-snap-2] SnapEvent interface: Why are SnapEventInit fields optional and nullable? ==
In the [SnapEvent interface](https://www.w3.org/TR/css-scroll-snap-2/#snapevent-interface), the fields of `SnapEventInit` are optional and nullable:

```
dictionary SnapEventInit : EventInit {
  Node? snapTargetBlock;
  Node? snapTargetInline;
};
```

Why is that and shouldn't they rather be marked as `required Node?`s?

@emilio 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13487 using your GitHub account


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

Received on Thursday, 12 February 2026 16:01:41 UTC