- From: Simon Pieters <simonp@opera.com>
- Date: Mon, 13 Oct 2014 13:33:38 +0200
- To: "www-style list" <www-style@w3.org>, "Benjamin Poulain" <bpoulain@apple.com>
On Sat, 11 Oct 2014 08:31:02 +0200, Benjamin Poulain <bpoulain@apple.com> wrote: > Hi, > > One problem I am interested in solving is the inability to format > documents that do not have a strong hierarchical structure. > > For example, let's take: > <h1>Title 1</h1> > <h2>Subtitle</h2> > <p>Paragraph1</p> > <p>Paragraph2</p> > <h1>Title 2</h1> > <p>Paragraph3</p> > <p>Paragraph4</p> > A common use case is styling the first paragraph after a title (for > example, using ::first-letter). We can try: > h1+p::first-letter > but that is too strong, it does not patch Paragraph1. We can try: > h1~p::first-letter > but that is too weak, every paragraph matches. How about: <hgroup> <h1>Title 1</h1> <h2>Subtitle</h2> </hgroup> <p>Paragraph1</p> <p>Paragraph2</p> <h1>Title 2</h1> <p>Paragraph3</p> <p>Paragraph4</p> h1+p::first-letter, hgroup+p::first-letter ? -- Simon Pieters Opera Software
Received on Monday, 13 October 2014 11:34:09 UTC