html iso-8859-15, css bom and @charset iso15

Test passes if there is a green rectangle below.

text

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

Notes:
The HTML page is served as ISO 8859-1. The CSS starts with a UTF-8 signature but also has an @charset rule declaring the encoding to be ISO 8859-1. The CSS 2.1 spec says that the whole stylesheet should be abandoned in that case.

Next test
xhtml as xml

Related tests