Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Opera Dragonfly Discussions

Discuss Opera Dragonfly, Opera's new developer tools.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By porneL anchor Wednesday, 7. May 2008, 22:01:21

avatar

Debugging of CSS margins and other invisibles

Can you make DOM/style inspector show CSS margins? And ideally also react to clicking margins? For brilliant example see XyleScope for WebKit.

I'd also appreciate information when Opera decides to (un)collapse margins, with which object and why.

This is precious information that can solve some serious "WTF!?" moments.

Another nice thing would be to draw outline or semi-transparent background on objects that may react to clicks, but are invisible. Again, when layout breaks or clicks don't seem to work, usually such objects are to blame.

By d4n3 anchor Sunday, 11. May 2008, 12:40:59

avatar+1

firebug has this feature, where you hover over an element in the DOM view and the element's marging and padding are displayed as a semi-transparent box over the element on the page.

By thesquire anchor Friday, 23. May 2008, 16:52:56

avatar+1 from me, too.
Helps to see the margins and paddings on the actual page as an outline.
They show up for a few seconds when you click on a dom element in dragonfly, but that just doesn't cut it :wink:

By fonant anchor Wednesday, 11. June 2008, 19:46:51

avatar+1 from me. Firebug's method of two colours of semi-transparent overlay, showing padding and margin, is very powerful to debug layout problems. Would be neat to find a way to display negative margins too, Firebug doesn't get these right (yet).

Moderators: dstorey | operadev | chrismills