Re: [csswg-drafts] Proposal: CSS @sheet (#11509)

@mayank99 - we didn't formally resolve to eliminate the filename + fragment syntax, but we discussed revisiting it in the minutes here: https://github.com/w3c/csswg-drafts/issues/11509#issuecomment-2622330858

I don't think the fragment-for-sheet resolution makes as much sense with the new proposal to add a `sheet` attribute. We could proceed with the fragment syntax for external files only, but there are two issues with this:

1. It only works with external files, and only ever will due to the MIME type mismatch between the stylesheet and HTML document
2. There would be two ways to embed a specific `@sheet` for external files in a `<link>` tag, which seems redundant

But since there was already a formal resolution to the fragment syntax, we'll need another resolution to redefine it. I will propose this at a future CSSWG meeting.

> If you ignore the sheet attribute, doesn't href="#sheet" imply that you can link a <style id="sheet"> in the same document? That should probably be its own proposal/issue, as it seems useful even without @sheet.

Yes, exactly! I will propose this as a separate proposal from `@sheet` and link to it here when that happens.

-- 
GitHub Notification of comment by KurtCattiSchmidt
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11509#issuecomment-2641472010 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 7 February 2025 00:16:25 UTC