Skip to content

Commit b65e4ce

Browse files
committed
[css-ruby] Add ruby-position:alternate, and make it the initial value
See w3c#5971
1 parent 0b346b3 commit b65e4ce

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

css-ruby-1/Overview.bs

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,8 +1285,8 @@ Ruby Positioning: the 'ruby-position' property</h3>
12851285

12861286
<pre class="propdef">
12871287
Name: ruby-position
1288-
Value: over | under | inter-character
1289-
Initial: over
1288+
Value: [ alternate || [ over | under ] ] | inter-character
1289+
Initial: alternate
12901290
Applies to: ruby annotation containers
12911291
Inherited: yes
12921292
Computed value: specified keyword
@@ -1296,9 +1296,26 @@ Ruby Positioning: the 'ruby-position' property</h3>
12961296
This property controls position of the [=ruby annotation=] with respect to its base.
12971297
Values have the following meanings:
12981298

1299-
Issue(5971): Roland Steiner has requested the addition of an auto value as default. See <a href="http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&amp;hdr-1-name=subject&amp;hdr-1-query=ruby-position%3A+undesirable+default+value+%27before%27+for+complex+ruby&amp;hdr-2-name=from&amp;hdr-2-query=&amp;hdr-3-name=message-id&amp;hdr-3-query=&amp;period_month=&amp;period_year=&amp;index-grp=Public__FULL&amp;index-type=t&amp;type-index=www-style&amp;resultsperpage=20&amp;sortby=date">this thread</a> and <a href="http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&amp;hdr-1-name=subject&amp;hdr-1-query=Styling+of+complex+Ruby&amp;hdr-2-name=from&amp;hdr-2-query=&amp;hdr-3-name=message-id&amp;hdr-3-query=&amp;period_month=&amp;period_year=&amp;index-grp=Public__FULL&amp;index-type=t&amp;type-index=public-i18n-core&amp;resultsperpage=20&amp;sortby=date">this one</a>. Current proposal is to add an optional ''alternate?'' keyword.
1300-
13011299
<dl dfn-for=ruby-position dfn-type=value>
1300+
<dt><dfn>alternate</dfn>
1301+
<dd>
1302+
Different [=levels=] of annotations alternate between ''over'' and ''under''.
1303+
1304+
If the [=annotation container=] is the first [=level=] of annotation in its [=ruby segment=],
1305+
or if all prior [=levels=] are [=inter-character=],
1306+
then ''alternate'', either on its own or in combination with ''over'',
1307+
behaves the same as ''over'',
1308+
while ''alternate'' in combination with ''under''
1309+
behaves the same as ''under''.
1310+
1311+
Otherwise,
1312+
if the previous level of [=interlinear=] annotation is ''over'',
1313+
''alternate'' behaves like ''under'',
1314+
and vice versa.
1315+
(In this case, whether ''alternate'' is specified alone
1316+
or in combination with ''over'' or ''under''
1317+
makes no difference.)
1318+
13021319
<dt><dfn>over</dfn>
13031320
<dd>
13041321
The ruby annotation appears [=line-over=] the base.

0 commit comments

Comments
 (0)