p#test { font-variant: small-caps; letter-spacing: 0.2ex; } will produce a paragraph element with the text rendered in small caps but with normal letter spacing. p#test { letter-spacing: 0.2ex; font-variant: small-caps; } will produce a paragraph element with the text rendered in small caps and the letter spacing set to 0.2ex.
Confirmed, testcase coming up.
Created attachment 5351 [details] Testcase
The problem seems to be only with the 'ex' unit. Specifying letter-spacing in other units works for small-caps. On the other hand, it is not limited to the letter-spacing property.
Created attachment 6562 [details] Add font-variant to the list of properties applied first
Comment on attachment 6562 [details] Add font-variant to the list of properties applied first r=me
The test from this patch doesn't pass for me - there is no green box, and an error is reported: ================= ERROR: called xHeight on an empty QFontMetrics (/Users/ap/WebKit/WebCore/kwq/KWQFontMetrics.mm:153 xHeight) =================
Sorry, it was my mistake.