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

[css-font-loading] what happens when you modify a CSS-connected FontFace?

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 01 Oct 2014 18:52:22 +1000
Message-ID: <542BC0C6.1070200@mcc.id.au>
To: "www-style@w3.org" <www-style@w3.org>
Say I do this:

   <style>
     @font-face { font-family: test; src: url(x); }
   </style>
   <script>
     var face = [...document.fonts][0];
     face.load().then(function() {
       face.style = "italic";
     });
   </script>

What happens to face's [[FontStatusPromise]] and its status after 
setting the style descriptor?  The spec doesn't allow for a FontFace to 
go back to loading after it is loaded.
Received on Wednesday, 1 October 2014 08:52:45 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:25 UTC