I do some CSS testing through selenium and screw-unit-server. Mainly checking what the style properties of certain dom elements are after executing some JavaScript.
I use selenium-grid to invoke the different browsers. Defining what is 'correct' seems a big difficulty. Sometimes a little variation in rendering is ok and in other designs it breaks everything! I've been playing with the idea of inspecting the position of elements in a page from the dom and using this to generate a SVG layout style document. I'm thinking more position rather than colours/fonts. At somepoint when I'm happy with the design I can generate this SVG and then check against this to see if the layout matches as things change. Nice thing about SVG is that its easy to change and has a visual representation to be inspected. The SVG becomes like the spec. my two cents. -- Joseph Wilk http://www.joesniff.co.uk Scott Taylor wrote: > On Aug 29, 2008, at 2:39 PM, Dan North wrote: > >> ooh, that would be lovely. >> >> LayoutBehave anyone? >> > > Well, I don't see why there couldn't be one, assuming there was a CSS > parser out there. > > I've started a treetop CSS2 parser, but just don't have the time to > devote to it. Anyone interested? > > Scott -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users