ID:2828968
 
Resolved
Browser handling of CSS files was incorrect, causing CSS not to load in some situations.
BYOND Version:515.1590
Operating System:Windows 10 Pro
Web Browser:Firefox 106.0
Applies to:Dream Seeker
Status: Resolved (515.1591)

This issue has been resolved.
Descriptive Problem Summary:
If
<meta http-equiv="X-UA-Compatible" content="IE=edge">
tag is present css stylesheets fail to load with 'CSS was ignored due to mime type mismatch'

Numbered Steps to Reproduce Problem:
Popup window with css and meta tag.

Code Snippet (if applicable) to Reproduce Problem:
//Just to show what's the content, file can be static
/mob/verb/make_test_css()
var/css = @{" .test { background: red; } "}
text2file(css,"test.css")

// All good. Page displays red background
/mob/verb/good()
var/asset_name = "whatever.css"
usr << browse_rsc('test.css',asset_name)

var/html = @{"<!DOCTYPE html> <html> <head> <link rel='stylesheet' type='text/css' href='whatever.css'> </head> <body class='test'>Testing</body> </html> "}

usr << browse(html,"window=test")

// Oh no. Page displays white background
/mob/verb/bad()
var/asset_name = "whatever.css"
usr << browse_rsc('test.css',asset_name)

var/html = @{"<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel='stylesheet' type='text/css' href='whatever.css'> </head> <body class='test'>Testing</body> </html> "}

usr << browse(html,"window=test")


Expected Results:
css loads

Actual Results:
css is ignored


Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
Worked fine in 514

Workarounds: I suppose not using the tag but that opens another bigger barrel of issues.

Lummox JR resolved issue with message:
Browser handling of CSS files was incorrect, causing CSS not to load in some situations.