On Windows, the pixel size and font family strings are different.
Created attachment 337936 [details] [diff] [review] Patch
Assignee: nobody → marco.zehe
Status: NEW → ASSIGNED
Attachment #337936 - Flags: review?(surkov.alexander)
Attachment #337936 - Flags: review?(surkov.alexander) → review+
Comment on attachment 337936 [details] [diff] [review] Patch r=me but please consider another approach, it is getting font size and family from document element for example
Created attachment 338050 [details] [diff] [review] Use getComputedStyle instead.
Comment on attachment 338050 [details] [diff] [review] Use getComputedStyle instead. r=me but please consider to use computedStyles for all styes and all defAttrs entries. I think we can use computedStyles because we don't want to test styles computing here but we want to test here logic of text attributes, right? Following this we should consider to use computed styles for defAttrs and attrs entries both. You can keep this in mind or file following up bug or fix this here. It's up to you.
Attachment #338050 - Flags: review?(surkov.alexander) → review+
Pushed in changeset: http://hg.mozilla.org/mozilla-central/rev/90fcd51e53c8
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.