Skip to content

[css-typed-om-1] Exposed value for partial interface Element makes no sense and is not valid Web IDL #658

@bzbarsky

Description

@bzbarsky

https://drafts.css-houdini.org/css-typed-om-1/#computed-stylepropertymapreadonly-objects says:

[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
partial interface Element

This is nonsensical (because Element is only exposed in Window), and it's invalid Web IDL, because it's nonsensical. Specifically, https://heycam.github.io/webidl/#Exposed says:

If [Exposed] appears on a partial interface or partial namespace, then the partial’s own exposure set must be a subset of the exposure set of the partial’s original interface or namespace.

Does Blink's IDL parser not even pretend to implement this stuff? :(

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions