Style rules to emulate HR

This group has a long history of shooting down proposed CSS rules for
styling the default look of <br> elements, so I figured here would be the
best place to ask:

What is wrong with the following?

   br {
     display: block;
   }

   br:before {
     content: "\A";
     white-space: pre; /* in case white-space applies to :before */
   }

   br[clear=left] {
     clear: left;
   }

   br[clear=right] {
     clear: right;
   }

   br[clear=all] {
     clear: both;
   }

(Other than the minor issue that for backwards compatability, the both
value for clear should actually clear the _bottom_ of the <br> and not the
top, like the rules above do.)

-- 
Ian Hickson                                     )\     _. - ._.)       fL
Netscape, Standards Compliance QA              /. `- '  (  `--'
+1 650 937 6593                                `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________

Received on Sunday, 18 February 2001 04:09:45 UTC