Re: [csswg-drafts] [css-fonts] FontFaceSet uses referential equality for calculating .has()

The content I'm rendering (and thus the fonts needed to render) can 
change based on server responses. Currently I'm having to generate a 
hash of all the necessary font properties and store it locally to 
ensure I don't add a duplicate font. But the general question of "is 
this font already defined in the document" seems like a fairly common 
scenario, and one that may be puzzling when .has() is reporting 
referential equality rather than (deep) value equality. 

Is it possible to define a looser comparison function that .has() 
would use? Or would it have to be a separate ability in FontFaceSet?

-- 
GitHub Notification of comment by craigkovatch
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/273#issuecomment-230909631 
using your GitHub account

Received on Wednesday, 6 July 2016 21:17:13 UTC