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

[css3-fonts] Question on CSSFontFaceLoadEvent

From: Kenichi Ishibashi <bashi@chromium.org>
Date: Wed, 31 Oct 2012 18:20:48 +0900
Message-ID: <CAPLXX--5sM2jrC+8b5pWKbx3UMBfNoqq16JWPPgzmvC0gqiXcg@mail.gmail.com>
To: www-style@w3.org
Hi,

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)?

Regards,
Received on Wednesday, 31 October 2012 09:34:33 GMT

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