W3C home > Mailing lists > Public > www-style@w3.org > August 2009

Re: [CSS21] display:run-in clarifications

From: Molly E. Holzschlag <mollyh@opera.com>
Date: Tue, 25 Aug 2009 23:44:12 -0700
To: "Sylvain Galineau" <sylvaing@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.uy9bny1yw4nav6@prosody.local>
On Tue, 25 Aug 2009 23:24:30 -0700, Sylvain Galineau  
<sylvaing@microsoft.com> wrote:

> I like the text too but I will ask the dumb question: what is the core  
> set of text cases for run-ins ? Clearly, this results in boxes becoming  
> inline or block depending on the context but I'm not 100% clear on what  
> problem it solves ?

Sylvain,

My main use case:

display:run-in allows for a classic use of typographic headers from the  
print world while maintaining the integrity of content flow within the  
document.

h2 {display: run-in; text-transform: uppercase;}



<h1>Welcome!</h1>

<p>blah blah.</p>

<h2>News of the day:</h2>

<p>Today Sylvain ate a lot of cabbage and it gave him a tummy ache.</p>




The presentation would be:

Welcome!

blah blah.

NEWS OF THE DAY: Today, Sylvain a lot of cabbage and it gave him a tummy  
ache.


-- 
Molly E. Holzschlag
Web Evangelist, Developer Relations, Americas
Member, W3C CSS Working Group
Opera Software mollyh@opera.com
"Follow the Standards / Break the Rules"
http://dev.opera.com/ http://molly.com/
Received on Wednesday, 26 August 2009 06:46:35 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:20 GMT