Forum Moderators: not2easy
There is one interesting nugget to be gained from the W3C outline specifications [w3.org] though:
Outlines may be non-rectangular
Wowee! Does this mean we can have rounded shapes? Or parallelograms? Once again though it's something borders might be capable of, with Mozilla having 'secret' code for rounded corners.
So what is the true purpose of outline when border offers the same thing (be it adding to the width of the element, yet allowing separate sides to be differently styled)?
Outlines may be non-rectangular. For example, if the element is broken across several lines, the outline is the minimum outline that encloses all the element's boxes.
So an outline will enclose multiple line boxes, unlike a border. You don't get fancy shapes like trapezoids and stuff. :(
This is bugzilla bug 6647, if you have a bugzilla account, vote for it.
While I'm developing I frequently add the rule
div {
border: 1px solid red;
}
But this is not prefect because borders are included in the document flow (so I may have to ignore the fact that my debug border causes a scrollbar to appear or an element to overflow). If I could do this with outlines then life would be easier. :)