- From: Jirka Kosek <jirka@kosek.cz>
- Date: Mon, 13 Oct 2014 09:46:02 +0200
- To: Benjamin Poulain <bpoulain@apple.com>, www-style list <www-style@w3.org>
- Message-ID: <543B833A.8010702@kosek.cz>
On 11.10.2014 8:31, Benjamin Poulain wrote:
> 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.
>
> My current idea to solve those cases is to extend the ~ combinator to take a selector filtering the traversal. Something of the form:
> a ~(b) c
Isn't this too complex? I think that for this use-case it would be
enough to use something like:
(h1,h2)+p
Meaning either <h1> or <h2> followed by <p>
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
Received on Monday, 13 October 2014 07:46:32 UTC