Skip to content

Fix: Add support for stylesheet MIME type quirk in quirks mode#51860

Merged
servo-wpt-sync merged 2 commits intoweb-platform-tests:masterfrom
servo:servo_export_36338
Apr 6, 2025
Merged

Fix: Add support for stylesheet MIME type quirk in quirks mode#51860
servo-wpt-sync merged 2 commits intoweb-platform-tests:masterfrom
servo:servo_export_36338

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

@servo-wpt-sync servo-wpt-sync commented Apr 4, 2025

This PR implements the HTML spec quirk for stylesheets: https://html.spec.whatwg.org/multipage/#link-type-stylesheet

The implementation adds a check in stylesheet_loader.rs to handle this quirk condition correctly, and adds a new WPT test to verify that same-origin non-CSS MIME type resources are properly treated as CSS in quirks mode.

Testing: Added a new WPT test (quirk-origin-check-positive.html) that verifies the positive case for this quirk.
Fixes: servo/servo#36324
Reviewed in servo/servo#36338

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync servo-wpt-sync force-pushed the servo_export_36338 branch 4 times, most recently from bcbd18e to 5e1398d Compare April 4, 2025 23:45
@servo-wpt-sync servo-wpt-sync merged commit e3e6eee into web-platform-tests:master Apr 6, 2025
20 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_36338 branch April 6, 2025 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stylesheet loading quirk is missing

3 participants