Re: [css-houdini-drafts] [css-typed-om-1]Manual definition of the map entries for StylePropertyMapReadOnly contradicts Web IDL

Ooooh, this seems like an unfortunate IDL bug. There's no reason to expose all the terribleness of page-observable ES objects to specs wanting to manipulate their internal data structures.

I had assumed that the "map entries" worked the same as the "indexed properties", which are definitely a spec-defined list.  Reading over this in more detail, it seems a bit clumsy - the maplike has a Map in an internal slot, but the Map's [[MapData]] is just the "map entries" thing defined earlier. This means that the "map entries" should be an **spec-ES List**, not a real-ES Array or anything.  Hopefully we'd be able to work on Infra types here and have a natural mapping to the ES-internal concepts.

Really it looks like this should instead be working with spec types (either Infra or ES) the whole way thru, rather than cramming a real-ES object in the middle of the algorithms?

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/652#issuecomment-366015673 using your GitHub account

Received on Thursday, 15 February 2018 18:19:23 UTC