79539173

Date: 2025-03-27 14:30:33
Score: 1
Natty:
Report link

You can do all this with pure "JavaScript" without using the "DOM".

const sheet = (await imoprt("css-url", { with: { type: "css" } })).default;
//  This can also be used in "shadowRoot".
document.adoptedStyleSheets = [sheet];
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 半导体果冻