The fix for bug #6146 forgot to handle small-caps, which is also synthesized. Although currently the small-caps trait is not requested (since it is always synthesized), I plan on fixing that. This code ought to be ready to handle requests that include the small-caps trait.
Created attachment 12800 [details] patch
Comment on attachment 12800 [details] patch Need a test case and a ChangeLog entry.
What sort of test case do you suggest? Since font-variant: small-caps doesn't request a font with the NSFontSmallCapsMask trait presently, I don't think it can be tested.
This patch was modifying 'WebFontCache.mm', which was deleted by this commit: https://github.com/WebKit/WebKit/commit/cf78b9f051b13cd4ddcfb8bfc570174a6e2faafd We don't have test case to understand to confirm whether the bug exist or not. @Vitor - is this applicable any more?