For the devtools, we want to show the "box model" of the selected node.
Screenshot (chrome): 
https://bug663778.bugzilla.mozilla.org/attachment.cgi?id=538850

We use the computed style and getBoundClientRect.

- bug 381328 is blocking us (computed style of margin:auto returns 0).
  Can anyone help? (maybe mentor me?)

- is there any better way than using the computed style + getBoundClientRect?
  Maybe we can expose the layout info to nsIDOMWindowUtils, or maybe we can
  highlight these regions directly at the gecko level.

-- Paul
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to