RE: [css3-break] Breaking using <br> element

Hi Simon,
Thanks for the tip. In my testing, I actually tried with «display: block» included, but forgot to add it to the code sample in my initial email.
So does this mean that if the <br> is made «display: block» it should produce page/column/region breaks? (Thus meaning that WebKit & IE are buggy and FF & Opera do it right)

Thanks,
m.

Mihai Balan | Quality Engineer / WebKit team |  mibalan@adobe.com | +4-031.413.3653 / x83653 | Adobe Systems Romania


-----Original Message-----
From: Simon Sapin [mailto:simon.sapin@kozea.fr] 
Sent: Tuesday, August 14, 2012 1:29 PM
To: www-style@w3.org
Subject: Re: [css3-break] Breaking using <br> element

Le 14/08/2012 11:37, Mihai Balan a écrit :
> .break {
>      break-after: page; /* or column or region */ }

The spec says the break-* properties apply to "block-level elements, table row groups, table rows". Try this:

.break {
   display: block;
   height: 0;
   break-after: page;
}

Cheers,
--
Simon Sapin

Received on Tuesday, 14 August 2012 11:45:42 UTC