<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>227967</bug_id>
          
          <creation_ts>2021-07-14 14:16:35 -0700</creation_ts>
          <short_desc>Implement CSS module scripts</short_desc>
          <delta_ts>2026-10-13 14:59:44 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=222750</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=326330</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=326393</see_also>
    
    <see_also>https://github.com/web-platform-tests/wpt/pull/63294</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>322230</dependson>
    
    <dependson>323170</dependson>
    
    <dependson>323483</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="daniec@microsoft.com">daniec</reporter>
          <assigned_to name="Kiet Ho">kiet.ho</assigned_to>
          <cc>709922234</cc>
    
    <cc>amir_mark</cc>
    
    <cc>andseier</cc>
    
    <cc>bannostookaylo</cc>
    
    <cc>bogdan.arvinte</cc>
    
    <cc>casey</cc>
    
    <cc>cory</cc>
    
    <cc>herr.ernst</cc>
    
    <cc>incoming-webkitbugs</cc>
    
    <cc>jeremiah</cc>
    
    <cc>jochen.kuehner</cc>
    
    <cc>kiet.ho</cc>
    
    <cc>koddsson</cc>
    
    <cc>koivisto</cc>
    
    <cc>maxart.x</cc>
    
    <cc>me</cc>
    
    <cc>methanal</cc>
    
    <cc>ncpncebij</cc>
    
    <cc>owenbuckley13</cc>
    
    <cc>philipprudloff</cc>
    
    <cc>randy</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>sn</cc>
    
    <cc>tomac</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit-bugzilla</cc>
    
    <cc>webkit.bugzilla</cc>
    
    <cc>westbrook.johnson</cc>
    
    <cc>woodlxf00</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1777037</commentid>
    <comment_count>0</comment_count>
    <who name="daniec@microsoft.com">daniec</who>
    <bug_when>2021-07-14 14:16:35 -0700</bug_when>
    <thetext>The CSS module scripts feature has been merged into the HTML spec.

Spec: https://html.spec.whatwg.org/multipage/webappapis.html#creating-a-css-module-script
Spec Integration PR: https://github.com/whatwg/html/pull/4898</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778556</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-21 14:17:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/80917329&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2003409</commentid>
    <comment_count>2</comment_count>
    <who name="Westbrook">westbrook.johnson</who>
    <bug_when>2024-01-06 15:55:41 -0800</bug_when>
    <thetext>Now that the import attributes spec has re-advanced to stage 3 (https://tc39.es/proposal-import-attributes/), any thoughts on when we might see this work resourced?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029745</commentid>
    <comment_count>3</comment_count>
    <who name="jogibear9988">jochen.kuehner</who>
    <bug_when>2024-04-19 02:03:31 -0700</bug_when>
    <thetext>Chromestatus:
https://chromestatus.com/feature/5205869105250304

Firefox issue about import attributes:
https://bugzilla.mozilla.org/show_bug.cgi?id=1736059

Firefox issue about Module CSS Scripts:
https://bugzilla.mozilla.org/show_bug.cgi?id=1720570</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2112479</commentid>
    <comment_count>4</comment_count>
    <who name="">bannostookaylo</who>
    <bug_when>2025-04-22 14:46:41 -0700</bug_when>
    <thetext>Any updates on when this might be out? Sure would be nice to be able to use this in production apps as it makes things load really nicely in Chrome and Edge but I have to opt for less attractive and old techniques because of Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2119159</commentid>
    <comment_count>5</comment_count>
    <who name="">bannostookaylo</who>
    <bug_when>2025-05-22 18:15:48 -0700</bug_when>
    <thetext>Is there any kind of eta of releasing import with type CSS? Being able to import CSS would be a game changer. I know because I wrote my app with it but only tested with chrome like a noob. I had to revert everything to accommodate FF and Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2137084</commentid>
    <comment_count>6</comment_count>
    <who name="">bannostookaylo</who>
    <bug_when>2025-08-17 16:08:22 -0700</bug_when>
    <thetext>How&apos;s this going? Having the ability to confidently import CSS across browsers will be huge for browser development.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2137633</commentid>
    <comment_count>7</comment_count>
    <who name="jogibear9988">jochen.kuehner</who>
    <bug_when>2025-08-19 23:36:32 -0700</bug_when>
    <thetext>FF will ship it in one of the next Versions: https://bugzilla.mozilla.org/show_bug.cgi?id=1720570#c10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144055</commentid>
    <comment_count>8</comment_count>
    <who name="Casey Klebba">casey</who>
    <bug_when>2025-09-18 11:38:45 -0700</bug_when>
    <thetext>It would be great to have some sort of signal on intent/desire to ship this capability, even if timing/priority is not known at this time — thanks for considering</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152322</commentid>
    <comment_count>9</comment_count>
    <who name="Herman C. Enos">ncpncebij</who>
    <bug_when>2025-10-18 02:18:12 -0700</bug_when>
    <thetext>Any updates on this feature? It’s pretty crucial for the future of framework-free web apps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169943</commentid>
    <comment_count>10</comment_count>
    <who name="Casey Klebba">casey</who>
    <bug_when>2026-01-06 23:09:29 -0800</bug_when>
    <thetext>Checking in on this thread for any new signs. Best I have found is an older thread which indicates support on 2023-11-14: https://github.com/WebKit/standards-positions/issues/77

Import attributes with {type: &apos;css&apos;} availability:

Chrome 123 (Release date: ⁨2024-03-19⁩)
Firefox 147 (Release date: ⁨2026-01-13⁩)

https://webstatus.dev/features/css-modules</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208802</commentid>
    <comment_count>11</comment_count>
    <who name="">bannostookaylo</who>
    <bug_when>2026-05-07 17:47:38 -0700</bug_when>
    <thetext>This currently works in Chrome, Firefox, Edge, and Opera, but fails in Safari due to what appears to be a WebKit-specific issue with CSS imports.

At the moment it’s difficult to justify adding browser-specific workarounds for Safari when the behavior diverges from every other major browser engine. Any clarification on whether this behavior is intentional or planned to be addressed would be appreciated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212828</commentid>
    <comment_count>12</comment_count>
    <who name="Casey Klebba">casey</who>
    <bug_when>2026-05-20 23:00:31 -0700</bug_when>
    <thetext>For reference, here are all Interop request/rejection threads for CSS Module Scripts:

2026: CSS Module Scripts #1056 — https://github.com/web-platform-tests/interop/issues/1056
2025: CSS Module Scripts #703 — https://github.com/web-platform-tests/interop/issues/703
2024: CSS Module Scripts #597 — https://github.com/web-platform-tests/interop/issues/597
2023: CSS Module Scripts #206 — https://github.com/web-platform-tests/interop/issues/206

It would be great to see this issue have an assignee or any disposition indicating an intent to implement

Thank you for considering</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242479</commentid>
    <comment_count>13</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2026-08-21 01:26:03 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/72110</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242789</commentid>
    <comment_count>14</comment_count>
    <who name="">andseier</who>
    <bug_when>2026-08-22 09:15:00 -0700</bug_when>
    <thetext>Amazing to see a PR up for this — thanks so much for prioritizing ❤️</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2254761</commentid>
    <comment_count>15</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2026-09-25 14:39:37 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/74961</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2255412</commentid>
    <comment_count>16</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2026-09-28 02:53:13 -0700</bug_when>
    <thetext>*** Bug 222750 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2259018</commentid>
    <comment_count>17</comment_count>
    <who name="Kiet Ho">kiet.ho</who>
    <bug_when>2026-10-05 13:09:39 -0700</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/63294</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2259688</commentid>
    <comment_count>18</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-10-06 13:39:26 -0700</bug_when>
    <thetext>Committed 322887@main (b1913f6615d4): &lt;https://commits.webkit.org/322887@main&gt;

Reviewed commits have been landed. Closing PR #74961 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>