W3C home > Mailing lists > Public > www-style@w3.org > January 2014

Re: [css-syntax] ISSUE-329: @charset has no effect on stylesheet??

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 15 Jan 2014 14:53:48 +0000
Message-ID: <CADnb78hkXFmzm+hThdtqZBTmeby3jcVgApXYfFKzm8gmv5U2tA@mail.gmail.com>
To: Richard Ishida <ishida@w3.org>
Cc: Simon Sapin <simon.sapin@exyr.org>, www-style <www-style@w3.org>, WWW International <www-international@w3.org>, "Tab Atkins Jr." <jackalmage@gmail.com>
On Wed, Jan 15, 2014 at 2:47 PM, Richard Ishida <ishida@w3.org> wrote:
> I don't think it's true that "The @charset rule has no effect on a
> stylesheet.", otherwise why would you use it at all, and how would you
> detect the fallback encoding?

You don't use an @charset rule. You use a byte sequence that looks
like "@charset" when interpreted in an ASCII-compatible encoding. A
BOM for CSS so to say, but unlike a BOM, it ends up being part of the
data model as well, as a useless @charset rule, because we suck.

Received on Wednesday, 15 January 2014 14:54:15 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:36 UTC