css - Testing for collapsed float -


how test collapsed float, container element not expand take in floating elements, e.g. div collapse after float css.

a collapsed float can fixed adding css overflow:auto property container. however, if overflow declaration accidently deleted in later edit, web page (or many pages if container used on many pages) can become unreadable.

given collapsed float not css error , not change text on page, how write rspec test detects if such collapsed has occured?

if have items floated within element, you'll need clear float @ end.

.clearfloat {     clear:both; } 

here's fiddle shows i'm talking about: http://jsfiddle.net/fishgraphics/gmr9m/


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -