Skip to content

[css-typed-om-1]The IDL for StylePropertyMap is not valid due to multiple maplike declarations #649

@bzbarsky

Description

@bzbarsky

https://heycam.github.io/webidl/#idl-maplike clearly says:

The inherited interfaces of a maplike interface must not also have a maplike declaration.

but that's precisely what StylePropertyMap is doing: inheriting from another interface with a maplike declaration.

The reason for this restriction is that a maplike declaration induces the existence of a [[BackingMap]] internal slot on instances. When there are multiple maplike declarations it's undefined whether there are multiple internal slots or whether they interact with the same internal slot or something else.

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