开发者

Is there any testing tool to verify the font consistency throughout the web application?

The purpose is to check for any inconsistency fonts used across the web application so that the developers can fix the开发者_如何学Go issue.

Consistency in terms of all font properties (Font families,font sizes etc.) needs to be checked. As suggested by Pekka below, I can use CSS to define consistent font properties which can be used in all web pages but how can a QA auto test this and confirm the same CSS and hence the same font is applied to the entire web application?


If a font-family is set on the body tag in your stylesheet, then that font will apply to nearly every element throughout your site (form and table elements being the exception where you have to redeclare the font-family for those).

The only time the font-family declared on the body won't apply is if it's overridden by a different font-family applied on individual elements elsewhere in the stylesheet, or if it is applied by inline styles.

So you can check on font-family consistency in the stylesheet/s just be doing a search for 'font:' (for cases where shorthand is being used) and 'font-family' and making sure any references to it match what your default font should be.

To override different fonts set by inline style, take a look at this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜