diff options
author | 2012-10-26 15:52:39 -0700 | |
---|---|---|
committer | 2012-10-26 15:52:39 -0700 | |
commit | 2ac4371f5d2fd20e98e0a439e2921dbfdc4f8eb9 (patch) | |
tree | 4a20f01cc8ab3c4a9d276c0b2a8e6ebad13d2d30 | |
parent | 4710b24e7a47a7e19239e1b0ada9ca0b4092ae54 (diff) |
allow firefox to report font-weight as 400=normal, 700=bold
-rw-r--r-- | contexts/data/fiveui/injected/prelude.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contexts/data/fiveui/injected/prelude.js b/contexts/data/fiveui/injected/prelude.js index 44ec319..40b911f 100644 --- a/contexts/data/fiveui/injected/prelude.js +++ b/contexts/data/fiveui/injected/prelude.js @@ -314,6 +314,9 @@ fiveui.font.getFont = function (jElt) { } res.family = jElt.css('font-family'); res.weight = jElt.css('font-weight'); + // normalize reporting of the following two synonyms + if (res.weight === '400') { res.weight = 'normal'; } + if (res.weight === '700') { res.weight = 'bold'; } return res; }; |