W3C home > Mailing lists > Public > www-style@w3.org > October 2012

Re: [css3-fonts] Question on CSSFontFaceLoadEvent

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 31 Oct 2012 13:33:22 +0100
Message-ID: <CAAWBYDB_xPaUsnsPrAB-wUL4oEEWfyujpNT_Abyny72XMnXpZA@mail.gmail.com>
To: Kenichi Ishibashi <bashi@chromium.org>
Cc: www-style@w3.org
On Wed, Oct 31, 2012 at 10:20 AM, Kenichi Ishibashi <bashi@chromium.org> wrote:
> How should we dispatch CSSFontFaceLoadEvent when there are two (or more)
> font-face rules which have the same url in the src descriptor?
>
> @font-face {  /* (A) */
>   font-family: A;
>   src: url(X);
> }
>
> @font-face {  /* (B) */
>   font-family: B;
>   src: url(X);
> }
>
> Case #1:
> <div style="font-family: A;">Foo</div>  // -> event.fontface = (A)
>
> Case #2:
> <div style="font-family: B, A;">Foo</div>  // -> event.fontface = (B)
>
> Case #3:
> <div>
> <span style="font-family: A">Foo</span><span style="font-family:
> B">Bar</span>
> </div>  // -> event.fontface = (A) ? dispatch events for (A) and (B)?

I think it should dispatch both A and B. However, we need to define
the ordering.

~TJ
Received on Wednesday, 31 October 2012 12:34:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:02 GMT