- From: Dave Smith <smithd7@tcd.ie>
- Date: Thu, 26 Mar 2009 18:27:20 +0000
- To: "'Giovanni Campagna'" <scampa.giovanni@gmail.com>
- CC: <www-style@w3.org>, "'Brad Kemper'" <brad.kemper@gmail.com>
Hi, many thanks for all the comments and discussion so far. I've been watching with great interest, but I'm not familiar with mailing lists so I've taken a back seat. >> <section> >> <anon for="h1::content-parent"> >> <h1>My section heading</h1> > <p>Para</p> > <p>Para</p> > <p>Para</p> > <p>Para</p> > </anon> > </section> > > <section> > <h1>My section heading</h1> > <anon for="h1::content"> > <p>Para</p> > <p>Para</p> > <p>Para</p> > <p>Para</p> > </anon> > </section> > >I see what you mean. I imagined something like that, but I wasn't sure. The above expresses very much what I had in mind with the proposal. >But, since you're only talking about ::content (not :heading)... how >would you select content and content-parent when sectioning is not >explicit, ie when dealing with numbered headers like > ><body> ><h1>Title ><p>text 1 ><h2>Subtitle ><p>Text 2 ><p>Text 3 ><h3>Sub-subtitle ><h4>Sub-sub-subtitle ><p>Text 4 ><h3>Sub-subtitle 2 ><p>Text 5 ><h1>Title 2 ></body> > >What is ::content for h3? >Would it include <h4>? Yes it would include <h4>. h3::content would give: <body> <h1>Title</h1> <p>text 1</p> <h2>Subtitle</h2> <p>Text 2</p> <p>Text 3</p> <h3>Sub-subtitle</h3> <anon for="h3::content"> <h4>Sub-sub-subtitle</h4> <p>Text 4</p> </anon> <h3>Sub-subtitle 2</h3> <anon for="h3::content"> <p>Text 5</p> </anon> <h1>Title 2</h1> </body> >What if I used <h7>? Quoting from a reply by Tab Atkins: "That's not an element in HTML5, so it wouldn't be recognized as a heading element (this is one of the reasons <section> was created, so you could 'reset' the header depth and avoid running out of header numbers!)" >What if "::content" was used in conjuction with a non heading element > (like p::content)? That should be a CSS error, as I can only see heading elements benefitting from ::content or ::content-parent (::section). There are no other elements, I can think of, that would practically benefit from them. >What does "::content" mean on its own? Nothing, it would be a CSS error. Same would go for ::content-parent (::section). >Secondly, what are the use cases for "::content-parent" not achieved by :matches? Don't know, I could not find anything on :matches, could someone send me a URI? A couple of use cases from the given example: h2::content-parent or h2::section would give: <body> <h1>Title</h1> <p>text 1</p> <anon for="h2::content-parent or h2::section"> <h2>Subtitle</h2> <p>Text 2</p> <p>Text 3</p> <h3>Sub-subtitle</h3> <h4>Sub-sub-subtitle</h4> <p>Text 4</p> <h3>Sub-subtitle 2</h3> <p>Text 5</p> </anon> <h1>Title 2</h1> </body> h1::content would give: <body> <h1>Title</h1> <anon for="h1::content"> <p>text 1</p> <h2>Subtitle</h2> <p>Text 2</p> <p>Text 3</p> <h3>Sub-subtitle</h3> <h4>Sub-sub-subtitle</h4> <p>Text 4</p> <h3>Sub-subtitle 2</h3> <p>Text 5</p> </anon> <h1>Title 2</h1> <anon for="h1::content"> </anon> </body> all the best Dave
Received on Thursday, 26 March 2009 18:28:12 UTC