4.4 CSS style sheet representation

Chapter 4 - Syntax and basic data types - 4.4 CSS style sheet representation

Go to the relevant page of the specification.

at-charset-001 (http)
HTTP Charset over BOM
The HTTP charset setting overrides the Byte Order Mark in the stylesheet.
at-charset-002 (http)
HTTP Charset over @charset
The HTTP charset setting overrides the @charset designation in the stylesheet.
at-charset-003 (http)
HTTP charset over link charset
The HTTP charset setting overrides the charset designation in the link tag.
at-charset-004 (http)
HTTP charset over set referring code page (UTF-8)
The HTTP charset setting overrides the referring document's code page.
at-charset-005 (http)
HTTP charset over set referring code page (windows-1252)
The HTTP charset setting overrides the charset designation in the referring document's meta tag.
at-charset-006 (http)
HTTP charset over referring code page (not set)
The HTTP charset setting overrides the charset of referring document.
at-charset-007
@charset over link charset attribute
The @charset setting in the stylesheet overrides the charset attribute of the link element.
at-charset-008
@charset over referring document's code page (set)
The @charset setting in the stylesheet overrides the referring document's set code page.
at-charset-009
@charset over referring document's code page (unset)
The @charset setting in the stylesheet overrides the referring document's unset code page.
at-charset-010
Link charset attribute over referring document's codepage (set)
The stylesheet's encoding is determined by the link element's charset attribute and not the referring document's code page.
at-charset-011
Link charset attribute over referring document's codepage (not set)
The stylesheet's encoding is determined by the link element's charset attribute and not the referring document's code page.
at-charset-012
Stylesheet encoding via the referring document's encoding (set)
The stylesheet's encoding is determined by the set encoding of the referring document.
at-charset-013 (HTMLonly, interact)
Stylesheet encoding via the referring document's encoding (user set)
The stylesheet's encoding is determined by the user set referring document's encoding.
at-charset-014
Matching BOM and @charset (utf-8)
The encoding is correctly interpreted from the matched BOM and @charset.
at-charset-015
Matching BOM and @charset (utf-16 LE)
The encoding is correctly interpreted from the matched BOM and @charset.
at-charset-016
Matching BOM and @charset (utf-16 BE)
The encoding is correctly interpreted from the matched BOM and @charset.
at-charset-019
BOM with no @charset (utf-8)
The stylesheet is correctly interpreted as utf-8.
at-charset-020
BOM with no @charset (utf-16LE)
The stylesheet is correctly interpreted as utf-16LE.
at-charset-021
BOM with no @charset (utf-16BE)
The stylesheet is correctly interpreted as utf-16BE.
at-charset-024
@charset specified (windows-1252)
The stylesheet is correctly interpreted as windows-1252.
at-charset-025
@charset specified (Shift-JIS)
The stylesheet is correctly interpreted as Shift-JIS.
at-charset-026
@charset specified (ISO-8859-6)
The stylesheet is correctly interpreted as ISO-8859-6.
at-charset-027
@charset specified (Big5)
The stylesheet is correctly interpreted as Big5.
at-charset-028
@charset specified (UTF-8)
The stylesheet is correctly interpreted as UTF-8.
at-charset-029
@charset specified (UTF-16LE)
The stylesheet is correctly interpreted as UTF-16LE.
at-charset-030
@charset specified (UTF-16BE)
The stylesheet is correctly interpreted as UTF-16BE.
at-charset-033
Non-matching BOM (windows-1252 with UTF-8 BOM)
The stylesheet is thrown out due to the BOM not matching the actual encoding.
at-charset-034
Non-matching BOM (UTF-8 with UTF-16LE BOM)
The stylesheet is thrown out due to the BOM not matching the actual encoding.
at-charset-035
Non-matching BOM (UTF-16LE with UTF-8 BOM)
The stylesheet is thrown out due to the BOM not matching the actual encoding.
at-charset-036
Non-matching BOM (UTF-32BE with UTF-16LE BOM)
The stylesheet is thrown out due to the BOM not matching the actual encoding.
at-charset-037
Non-matching @charset (Shift-JIS with 1252 @charset)
The selector does not match due to the mismatched @charset.
at-charset-038
Non-matching @charset (Big5 with Shift-JIS @charset)
The selector does not match due to the mismatched @charset.
at-charset-039
Matching BOM and @charset (utf-8)
The encoding is correctly interpreted from the matched BOM and @charset.
at-charset-040
Non-matching @charset (UTF-16BE with UTF-8 @charset)
The stylesheet is thrown out due to the mismatched @charset.
at-charset-041
Non-matching @charset (UTF-32LE with UTF-16BE @charset)
The stylesheet is thrown out due to the mismatched @charset.
at-charset-042
@charset does not match BOM (UTF8 encoding and BOM with UTF-16BE @charset)
The stylesheet is thrown out due to the mismatched @charset.
at-charset-043
@charset does not match BOM (UTF-16LE encoding and BOM with UTF-8 @charset)
The stylesheet is thrown out due to the mismatched @charset.
at-charset-044
@charset does not match BOM (UTF-32BE encoding and BOM with UTF-16BE @charset)
The stylesheet is thrown out due to the mismatched @charset.
at-charset-045
Mismatched endianness in @charset (UTF-16LE encoding and BOM with UTF-16BE @charset)
The stylesheet is thrown out due to the mismatched @charset.
at-charset-046
Mismatched endianness in @charset (UTF-16BE encoding and BOM with UTF-16LE @charset)
The stylesheet is thrown out due to the mismatched @charset.
at-charset-047
Endianness not specified (UTF-16LE encoding with UTF-16 @charset)
The stylesheet is interpreted in the correct encoding.
at-charset-048
Endianness not specified (UTF-16BE encoding with UTF-16 @charset)
The stylesheet is interpreted in the correct encoding.
at-charset-049
@charset preceded by a newline
The selector does not match due to the @charset being ignored.
at-charset-050
@charset preceded by a space
The selector does not match due to the @charset being ignored.
at-charset-051
@charset preceded by a declaration
The selector does not match due to the @charset being ignored.
at-charset-052
@charset preceded by another @charset
The selector does not match due to the second @charset being ignored.
at-charset-053
@charset immediately followed by a declaration block
The declaration block is interpreted and applied correctly.
at-charset-054
@charset in uppercase
The selector does not match due to the @charset being ignored.
at-charset-055
@charset without quotes
The selector does not match due to the @charset being ignored.
at-charset-056
@charset missing a space
The selector does not match due to the @charset being ignored.
at-charset-057
@charset escaped numerically
The selector does not match due to the @charset being ignored.
at-charset-058
@charset escaped char
The selector does not match due to the @charset being ignored.
at-charset-059
@charset missing semi-colon
The selector does not match due to the @charset being ignored.
at-charset-060
@charset with bogus name
The selector does not match due to the @charset being ignored.
at-charset-061
@charset within style block
The selector does not match due to the @charset being ignored.
at-charset-071 (http)
Stylesheet encodings: ISO-8859-1
at-charset-072 (http)
Stylesheet encodings: ISO-8859-11
at-charset-073 (http)
Stylesheet encodings: ISO-8859-5
at-charset-074 (http)
Stylesheet encodings: ISO-8859-6
at-charset-075 (http)
Stylesheet encodings: ISO-8859-7
at-charset-076 (http)
Stylesheet encodings: ISO-8859-8
at-charset-077 (http)
Stylesheet encodings: KOI8-R
at-charset-quotes-001
@charset quotes
at-charset-space-001
@charset leading-space
at-charset-space-002
@charset trailing-space
at-charset-utf16-be-001
@charset utf-16-be-no-bom
at-charset-utf16-be-002
@charset utf-16-be-bom
at-charset-utf16-be-003
@charset utf-16-bom-be
at-charset-utf16-le-001
@charset utf-16-le-no-bom
at-charset-utf16-le-002
@charset utf-16-le-bom
at-charset-utf16-le-003
@charset utf-16-bom-le
character-encoding-001 (http)
html utf8, css http iso1
The user agent respects the encoding of a css stylesheet declared in HTTP.
character-encoding-002 (http)
html utf8, css http iso15
The user agent respects the encoding of a css stylesheet declared in HTTP.
character-encoding-003 (http)
html iso1, css http utf8
The user agent respects the encoding of a css stylesheet declared in HTTP.
character-encoding-004 (http)
html utf8, css @charset iso1
The user agent respects the encoding of a css stylesheet declared in an @charset rule.
character-encoding-005 (http)
html utf8, css @charset iso15
The user agent respects the encoding of a css stylesheet declared in an @charset rule.
character-encoding-006 (http)
html iso1, css @charset utf8
The user agent respects the encoding of a css stylesheet declared in an @charset rule.
character-encoding-007 (http)
html utf8, link charset iso1
The user agent respects the encoding of a css stylesheet declared in a charset attribute on the HTML link.
character-encoding-008 (http)
html utf8, link charset iso15
The user agent respects the encoding of a css stylesheet declared in a charset attribute on the HTML link.
character-encoding-009 (http)
html iso-8859-1, link charset utf8
The user agent respects the encoding of a css stylesheet declared in a charset attribute on the HTML link.
character-encoding-010 (http)
html iso1
The user agent applies the encoding of the HTML file to a css stylesheet whose encoding is not otherwise declared.
character-encoding-011 (http)
html iso15
The user agent applies the encoding of the HTML file to a css stylesheet whose encoding is not otherwise declared.
character-encoding-012 (http)
html utf8
The user agent applies the encoding of the HTML file to a css stylesheet whose encoding is not otherwise declared.
character-encoding-013 (http)
html iso-8859-1, css bom
The user agent uses a UTF-8 signature without an @charset at the beginning of a css stylesheet to indicate that the encoding is UTF-8.
character-encoding-014 (http)
html iso-8859-15, css bom
The user agent uses a UTF-8 signature without an @charset at the beginning of a css stylesheet to indicate that the encoding is UTF-8.
character-encoding-015 (http)
html iso-8859-1, css bom and @charset utf8 (in lowercase)
When a stylesheet has a BOM and an @charset declaration that is for the right Unicode encoding, the stylesheet works.
character-encoding-016 (http)
html iso-8859-1, css bom and @charset utf8 (in uppercase)
When a stylesheet has a BOM and an @charset declaration that is for the right Unicode encoding, the stylesheet works.
character-encoding-017 (http)
html iso-8859-15, 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.
character-encoding-018 (http)
html utf-8, css @charset unknown
When a stylesheet has a @charset declaration with an unknown value, the stylesheet should be ignored.
character-encoding-019 (http)
no semicolon at end of charset rule
If a @charset declaration is missing a final semicolon, the encoding declaration will not be recognised.
character-encoding-020 (http)
extra spaces after @charset
If a @charset declaration has more than one space after 'charset', the encoding declaration will not be recognised.
character-encoding-021 (http)
extra spaces before colon in charset rule
If a @charset declaration has spaces just before the colon, the encoding declaration will not be recognised.
character-encoding-022 (http)
linebreak in middle of charset rule
If a @charset declaration has a line break in the middle, the encoding declaration will not be recognised.
character-encoding-023 (http)
single quotes around charset name
If a @charset declaration value has single, rather than double, quotes around it, the encoding declaration will not be recognised.
character-encoding-024 (http)
blank line before @charset
If a @charset declaration is not on the first line of the file, the encoding declaration will not be recognised.
character-encoding-025 (http)
blank spaces before @charset
If a @charset declaration does not start at the beginning of the first line of the file (when there is no BOM), the encoding declaration will not be recognised.
character-encoding-026 (http)
http vs. @charset
An HTTP encoding declaration for a stylesheet takes precedence over an @charset declaration.
character-encoding-027 (http)
http vs. charset link
An HTTP encoding declaration for a stylesheet takes precedence over a charset attribute link declaration.
character-encoding-028 (http)
http vs. bom
An HTTP encoding declaration for a stylesheet takes precedence over a UTF-8 signature.
character-encoding-029 (http)
@charset vs. link charset
An HTTP encoding declaration for a stylesheet takes precedence over a UTF-8 signature.
character-encoding-031 (http)
Stylesheet encodings: ISO-8859-1
character-encoding-032 (http)
Stylesheet encodings: ISO-8859-11
character-encoding-033 (http)
Stylesheet encodings: ISO-8859-5
character-encoding-034 (http)
Stylesheet encodings: ISO-8859-6
character-encoding-035 (http)
Stylesheet encodings: ISO-8859-7
character-encoding-036 (http)
Stylesheet encodings: ISO-8859-8
character-encoding-037 (http)
Stylesheet encodings: KOI8-R
character-encoding-038 (http)
Stylesheet encodings: malformed UTF-8
charset-attr-001
@charset test-attribute
first-letter-nested-006
:first-letter