Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
pNotUsed.. fix for firefox font-weight conversion
Browse files Browse the repository at this point in the history
Firefox always converts font-weight to a string with the number of the
font weight. Chrome and others use the input ('bold'). Both now work.
  • Loading branch information
Wilco Fiers authored and jessebeach committed Aug 8, 2015
1 parent c334aa8 commit 213d8a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/custom/pNotUsedAsHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ quail.pNotUsedAsHeader = function(quail, test, Case) {
}
});
}
if ($paragraph.css('font-weight') === 'bold') {

var fontWeight = $paragraph.css('font-weight');
if (fontWeight === 'bold' || +fontWeight >= 700) { // bold
_case.set({
'status': 'failed'
});
Expand Down

0 comments on commit 213d8a6

Please sign in to comment.