- From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
- Date: Sat, 18 Jan 2025 18:57:01 +0000
- To: public-css-archive@w3.org
FWIW, a fragment pointing into an HTML file seems like the wrong way to refer to `@sheet` declarations inside inline CSS inside that HTML file. Specifically, fragment resolution in URLs depends on the MIME type of the resource (https://html.spec.whatwg.org/multipage/browsing-the-web.html#the-indicated-part-of-the-document, https://www.rfc-editor.org/rfc/rfc8820#name-uri-fragment-identifiers). Inside an HTML document, [fragments point to the element with the named 'id' or `<a name>` attribute](https://html.spec.whatwg.org/multipage/browsing-the-web.html#select-the-indicated-part), or the text identified by https://wicg.github.io/scroll-to-text-fragment/#invoking-text-directives. That won't find an `@sheet`. You could consider extending the fragment syntax again to allow it to explicitly navigate into inline CSS, but I feel like a new attribute might be a better way to do this, as discussed in https://github.com/w3ctag/design-reviews/issues/1000#issuecomment-2433714302. -- GitHub Notification of comment by jyasskin Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11509#issuecomment-2599841044 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 18 January 2025 18:57:02 UTC