Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test CSS test on font size instead of padding.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73e4ef2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test change breaks in all Opera versions (at least for me). I don't have time at the moment to investigate this further but it looks like you can't set the
font-size
to anything smaller then9px
(you can set it but it gets ignored)73e4ef2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upon further investigation I discovered that Opera by default enforces a Minimum font size of
9px
for webpage text (it a configurable limit). Actually I never took note before of this setting which sits right there under Settings - Advanced - Fonts - Minimum font size (pixels). If I change it to1px
the test in question succeeds.I also found that (which I wasn't aware before) Firefox, Safari and IE all have the ability to define such a minimum font size (for accessibility reasons) although none of them activate this by default. Of the major browsers only Chrome doesn't support such a setting.
So I suggest changing
j.css("fontSize", "1px");
to something likej.css("fontSize", "15px");
to correct this false negative