Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIntermittent reftest failures due to font selection choices #23290
Comments
|
This is a relatively common intermittent failure on taskcluster mac jobs; this will only get worse as we add more of them. |
|
The info added to #23375 has yielded interesting output like the following:
I find this highly suspect! |
|
I have a theory that this occurs when the macos font backend's FontHandle::new_from_template is called with a None pt_size argument. This chooses 0.0 for a point size, then FontTemplateData::ctfont instantiates the font with a point size of 0.1, but all queries for the font use 0.0 and won't find it. This could explain why the fallback behaviour is triggered. |
|
This can happen if FontTemplate::instantiate is called, rather than FontContext::create_font, which happens in FontContext::descriptor. |
|
Theory busted - we store the unclamped point size in the hashmap, not the clamped one :( |


Test:


Reference:
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/css/CSS2/syntax/at-charset-001.xht
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/css/CSS2/syntax/at-charset-001-ref.xht
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/css/CSS2/syntax/support/at-charset-001.css
It's not clear to me how this can happen, but it does.