interop icon indicating copy to clipboard operation
interop copied to clipboard

Import Attributes

Open thescientist13 opened this issue 1 year ago • 1 comments

Description

Taken from https://github.com/web-platform-tests/interop/issues/436

Import attributes are a way to import JSON and CSS modules in JavaScript. (and potentially more in the future)

They would help enable cross-related Interop requests at a foundational level and would provide a full suite of capabilities in one go if prioritized for Interop 2025 all together 🤩

  • https://github.com/web-platform-tests/interop/issues/705
  • https://github.com/web-platform-tests/interop/issues/703

Specification

TC39

Additional Signals

Chrome has already moved from the previous assert syntax to the with syntax, and both JSON and CSS modules supported in Chrome as well.

All browsers are already supportive of CSS and JSON modules.

This has been highly requested in prior interops

  • https://github.com/web-platform-tests/interop/issues/436
  • https://github.com/web-platform-tests/interop/issues/236

thescientist13 avatar Sep 19 '24 17:09 thescientist13

https://wpt.fyi/results/html/semantics/scripting-1/the-script-element/import-attributes?label=master&label=experimental&aligned for the very basic level

gsnedders avatar Sep 19 '24 23:09 gsnedders

Yay, TC39 just moved Import Attributes and JSON Modules to Stage 4!

Congrats to @NicoloRibaudo on advancing both Import Attributes & JSON Modules to Stage 4 at @TC39 today 🎉

It introduces the with keyword for imports. Chrome successfully unshipped the assert keyword 👍

thescientist13 avatar Oct 08 '24 13:10 thescientist13

Thank you for proposing Import Attributes for inclusion in Interop 2025.

We are pleased to let you know that this proposal was accepted as part of the Modules focus area. You can follow the progress of this focus area on the Interop 2025 dashboard.

For an overview of our process, see proposal selection. Thank you for contributing to Interop 2025!

Posted on behalf of the Interop team.

wpt-interop avatar Feb 13 '25 17:02 wpt-interop