Skip to content

CSS module scripts #77

Closed
Closed

Description

@uasan

Request for position on an emerging web specification

Implement CSS module scripts

  • WebKittens who can provide input:

Information about the spec

Design reviews and vendor positions

  • TAG Design Review:
  • Mozilla standards-positions issue:

Bugs tracking this feature

Anything else we need to know

The CSS module scripts feature has been merged into the HTML spec.

Activity

  1. added
    concerns: integration
    from: Microsoft
    topic: javascript
    on Oct 25, 2022
  2. annevk commented on Oct 25, 2022

    @annevk
    Contributor

    Adding concerns: integration due to whatwg/html#7233 still existing.

  3. uasan commented on Feb 2, 2023

    @uasan
    Author

    The importance of this implementation lies in the fact that now it is impossible to make a polyfill, because importing { type: "css" } causes a syntax error, this means that you need to respond different JS source code on the server depending on the browser

  4. annevk commented on Feb 6, 2023

    @annevk
    Contributor

    Note that as per references in #128 the underlying syntax is likely to change here.

  5. clshortfuse commented on Feb 16, 2023

    @clshortfuse

    From a developer perspective I'm transcompiling imports into a constructable CSSStyleSheet for Firefox.

    On Safari (non TP), I put it into a HTMLStyleSheet and pass the child CSSStyleSheet that's still attached. Before adding a CSSStyleSheet to a ShadowDOM (Web Components), the CSSStyleSheet is inspected and the parent HTMLStyleSheet gets cloned. I imagine if/when constructable CSSStyleSheets is out ot TP, I'll be able to reduce some code, but still would need transcompilation.

    I hope it gets implemented, but not entirely important for production since we package imports before deployment. For development, we'd have 0 transcompile which means we can work directly against files on the drive instead of minified (FormAssociated is/was our only polyfill). That can be rather useful for live-editing styles within the browser (easier than source maps). We do not expect to move back to SCSS, or author CSS within JS.

  6. moved this from Unscreened to Needs position in Standards Positions Review Backlogon Mar 23, 2023
  7. moved this from Needs position to Needs assignees in Standards Positions Review Backlogon Mar 27, 2023
  8. moved this from Needs assignees to Needs position in Standards Positions Review Backlogon Mar 27, 2023
  9. annevk commented on May 12, 2023

    @annevk
    Contributor

    This would be "position: support" if #77 (comment) were addressed. Marking this blocked for now.

  10. added
    blocked
    on May 12, 2023
  11. uasan commented on Sep 7, 2023

    @uasan
    Author

    @annevk As I understand it, this commit should unblock this task?
    Enable import-attributes - WebKit/WebKit@587c5d4

  12. removed
    blocked
    concerns: integration
    on Oct 29, 2023
  13. annevk commented on Oct 29, 2023

    @annevk
    Contributor

    As #77 (comment) has been resolved (thanks Nicolò!) and no other concerns have been raised I suggest we mark this "position: support" one week from now.

  14. moved this from Needs position to Position identified in Standards Positions Review Backlogon Oct 29, 2023
  15. moved this from Position identified to Done in Standards Positions Review Backlogon Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

from: Microsoftposition: supporttopic: javascripttopic: loadingvenue: WHATWG HTML Workstream

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions