WordPress / theme-test-data

Theme Test Data
627 stars 18 forks source link

Use different size images for testing alignments #51

Open joyously opened 5 years ago

joyously commented 5 years ago

I never thought it would happen, but someone wrote a theme with CSS specific to the unit test data, which makes the image alignment pages look okay even though the standard WP classes were not defined. https://themes.trac.wordpress.org/ticket/71793#comment:3

Remove the CSS that is specific to the unit test data:

.content-page .alignleft{ width: 150px;}
.content-page .alignright{ width: 300px;}
.content-page .aligncenter{ width: 580px;}
.post-content .alignright{ width: 300px;}
.post-content .aligncenter{ width: 580px;}
.post-content .alignleft{ width: 150px;}

It would also be good to test large images aligned left or right, and large captioned images centered.

joyously commented 5 years ago

Would you believe there was another one!? https://themes.trac.wordpress.org/ticket/71940#comment:3

Remove this CSS which is specific to the unit test data: .blog-detail .alignleft { height: 150px; width: 150px; } .blog-detail .aligncenter { height: 300px; width: 580px; } .blog-detail .alignright { height: 200px; width: 300px; }