css bom and @charset iso15


When a stylesheet has a BOM and a @charset declaration that is not for a Unicode encoding, the stylesheet fails.

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

The HTML page is served as ISO 8859-15. The CSS starts with a UTF-8 signature but also has an @charset rule declaring the encoding to be ISO 8859-15. The CSS 2.1 spec says that the whole stylesheet should be abandoned in that case. If not ignored, the box will turn red.

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


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