css-ruby/Overview.src.html

changeset 8498
cc638536b160
parent 8497
0a74bdd0d743
child 8499
9979d267d8ed
     1.1 --- a/css-ruby/Overview.src.html	Tue Jun 18 22:59:49 2013 +0900
     1.2 +++ b/css-ruby/Overview.src.html	Tue Jun 18 23:29:25 2013 +0900
     1.3 @@ -1009,21 +1009,23 @@
     1.4  	<p>Unfortunately, because Selectors cannot match against text nodes,
     1.5  	it's not possible with CSS to express rules that will automatically and correctly
     1.6  	add parentheses to unparenthesized ruby annotations in HTML.
     1.7 -	However, an author rigorously using <code>&lt;rtc&gt;</code> elements
     1.8 -	around all annotations
     1.9 -	can use CSS Level 2 generated content [[!CSS21]] to generate parentheses:
    1.10 +	(This is because HTML ruby allows implying the <i>ruby base</i> from raw text, without a corresponding element.)
    1.11 +	However, these rules will handle cases where either <code>&lt;rb&gt;</code>
    1.12 +	or <code>&lt;rtc&gt;</code> is used rigorously.
    1.13 +
    1.14  	<pre>
    1.15 +<!--	-->/* Parens around &lt;rtc> */
    1.16  <!--	-->rtc::before { content: "("; }
    1.17 -<!--	-->rtc::after { content: ")"; }</pre>
    1.18 +<!--	-->rtc::after  { content: ")"; }
    1.19  
    1.20 -	<p>Alternatively, an author rigorously using
    1.21 -	both <code>&lt;rb&gt;</code> and <code>&lt;rt&gt;</code> elements but no <code>&lt;rtc&gt;</code> elements
    1.22 -	can use these rules instead:
    1.23 -	<pre>
    1.24 -<!--	-->rb + rt::before { content: "("; }
    1.25 -<!--	-->rt:last-child::after, rt + rb::before { content: ")"; }</pre>
    1.26 +<!--	-->/* Parens before first &lt;rt> not inside &lt;rtc> */
    1.27 +<!--	-->rb  + rt::before,
    1.28 +<!--	-->rtc + rt::before { content: "("; }
    1.29  
    1.30 -  <p class="Issue">Try to make these smarter somehow?</p>
    1.31 +<!--	-->/* Parens after &lt;rt> not inside &lt;rtc> */
    1.32 +<!--	-->rb ~ rt:last-child::after,
    1.33 +<!--	-->rt + rb::before  { content: ")"; }
    1.34 +<!--	-->rt + rtc::before { content: ")("; }</pre>
    1.35  
    1.36  <h2 id="glossary">
    1.37  Glossary</h2>

mercurial