http vs. @charset

Test passes if there is a green rectangle below.

This test is only valid if the user agent recognises the HTTP and @charset declarations.

text

Assertion: An HTTP encoding declaration for a stylesheet takes precedence over an @charset declaration.

Notes:
The HTML page is served as ISO 8859-1. The CSS contains an @charset rule that says the file is UTF-8, but the HTTP header says ISO 8859-1.

Next test
xhtml as html

Related tests