-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Stylesheet loading quirk is missing #36324
Copy link
Copy link
Closed
web-platform-tests/wpt
#51860Labels
A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)Interacting with CSS from web content (parsing, serializing, introspection)A-content/scriptRelated to the script threadRelated to the script threadE-less-complexStraightforward. Recommended for a new contributor.Straightforward. Recommended for a new contributor.
Description
Quirk: If the document has been set to [quirks mode](https://dom.spec.whatwg.org/#concept-document-quirks), has the [same origin](https://html.spec.whatwg.org/#same-origin) as the [URL](https://url.spec.whatwg.org/#concept-url) of the external resource, and the [Content-Type metadata](https://html.spec.whatwg.org/#content-type) of the external resource is not a supported style sheet type, the user agent must instead assume it to be [text/css](https://html.spec.whatwg.org/#text/css).
We are missing support for this quirk in
servo/components/script/stylesheet_loader.rs
Lines 164 to 167 in cf3ad2d
| let is_css = metadata.content_type.is_some_and(|ct| { | |
| let mime: Mime = ct.into_inner().into(); | |
| mime.type_() == mime::TEXT && mime.subtype() == mime::CSS | |
| }); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/cssInteracting with CSS from web content (parsing, serializing, introspection)Interacting with CSS from web content (parsing, serializing, introspection)A-content/scriptRelated to the script threadRelated to the script threadE-less-complexStraightforward. Recommended for a new contributor.Straightforward. Recommended for a new contributor.