http vs. charset link


An HTTP encoding declaration for a stylesheet takes precedence over a charset attribute in the link element.

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

The HTML page is served as ISO 8859-1 and has a class name ýäè. This only matches the sequence of bytes in the selector of the CSS file if the selector is read as ISO 8859-1. The HTML link element contains a charset attribute that says that the style sheet is UTF-8, but the HTTP header for the style sheet says ISO 8859-1. If the HTTP header overrides the @charset rule, the selector will match the class name and the test will pass.

Text as read from the style sheet:   (if blank, the style sheet hasn't been read at all)

Next test

Result summary & related tests
Detailed results for this test
Link to spec