Skip to content

Commit dfa5b34

Browse files
committed
[css-ruby-1] Bikeshed improvements related to property values (#144)
1 parent 0ac66d4 commit dfa5b34

File tree

1 file changed

+26
-98
lines changed

1 file changed

+26
-98
lines changed

css-ruby/Overview.bs

Lines changed: 26 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,10 @@ Ruby-specific 'display' Values</h3>
160160
authors must map document language elements to ruby elements;
161161
this is done with the 'display' property.
162162

163-
<table class="propdef">
164-
<tr>
165-
<th>Name:
166-
<td>display
167-
<tr>
168-
<th><a href="#values">New Values</a>:
169-
<td>ruby | ruby-base | ruby-text | ruby-base-container | ruby-text-container
170-
</table>
163+
<pre class="propdef">
164+
Name: display
165+
New values: ruby | ruby-base | ruby-text | ruby-base-container | ruby-text-container
166+
</pre>
171167

172168
<p>The following new 'display' values assign ruby layout roles to an arbitrary element:
173169

@@ -897,38 +893,13 @@ Ruby Formatting Properties</h2>
897893
<h3 id="rubypos">
898894
Ruby Positioning: the 'ruby-position' property</h3>
899895

900-
<table class="propdef">
901-
<tr>
902-
<th>Name:
903-
<td><dfn>ruby-position</dfn>
904-
<tr>
905-
<th><a href="#values">Value</a>:
906-
<td>[ over | under | inter-character ]
907-
<tr>
908-
<th>Initial:
909-
<td>over
910-
<tr>
911-
<th>Applies to:
912-
<td>ruby annotation containers
913-
<tr>
914-
<th>Inherited:
915-
<td>yes
916-
<tr>
917-
<th>Percentages:
918-
<td>N/A
919-
<tr>
920-
<th>Media:
921-
<td>visual
922-
<tr>
923-
<th>Computed value:
924-
<td>specified value
925-
<tr>
926-
<th>Animatable:
927-
<td>no
928-
<tr>
929-
<th>Canonical order:
930-
<td><abbr title="follows order of property value definition">per grammar</abbr>
931-
</table>
896+
<pre class="propdef">
897+
Name: ruby-position
898+
Value: [ over | under | inter-character ]
899+
Initial: over
900+
Applies to: ruby annotation containers
901+
Inherited: yes
902+
</pre>
932903

933904
<p>This property controls position of the ruby text with respect to its base.
934905
Values have the following meanings:
@@ -994,38 +965,13 @@ Ruby Positioning: the 'ruby-position' property</h3>
994965
<h3 id="collapsed-ruby">
995966
Sharing Annotation Space: the 'ruby-merge' property</h3>
996967

997-
<table class="propdef">
998-
<tr>
999-
<th>Name:
1000-
<td><dfn>ruby-merge</dfn>
1001-
<tr>
1002-
<th><a href="#values">Value</a>:
1003-
<td>separate | collapse | auto
1004-
<tr>
1005-
<th>Initial:
1006-
<td>separate
1007-
<tr>
1008-
<th>Applies to:
1009-
<td>ruby annotation containers
1010-
<tr>
1011-
<th>Inherited:
1012-
<td>yes
1013-
<tr>
1014-
<th>Percentages:
1015-
<td>N/A
1016-
<tr>
1017-
<th>Media:
1018-
<td>visual
1019-
<tr>
1020-
<th>Computed value:
1021-
<td>specified value
1022-
<tr>
1023-
<th>Animatable:
1024-
<td>no
1025-
<tr>
1026-
<th>Canonical order:
1027-
<td><abbr title="follows order of property value definition">per grammar</abbr>
1028-
</table>
968+
<pre class="propdef">
969+
Name: ruby-merge
970+
Value: separate | collapse | auto
971+
Initial: separate
972+
Applies to: ruby annotation containers
973+
Inherited: yes
974+
</pre>
1029975

1030976
<p>
1031977
This property controls how ruby annotation boxes should be rendered
@@ -1096,32 +1042,14 @@ Sharing Annotation Space: the 'ruby-merge' property</h3>
10961042
<h3 id="ruby-align-property"><span id="rubyalign"></span>
10971043
Ruby Text Distribution: the 'ruby-align' property</h3>
10981044

1099-
<table class="propdef">
1100-
<tr>
1101-
<th>Name:
1102-
<td><dfn>ruby-align</dfn>
1103-
<tr>
1104-
<th><a href="#values">Value</a>:
1105-
<td>start | center | space-between | space-around
1106-
<tr>
1107-
<th>Initial:
1108-
<td>space-around
1109-
<tr>
1110-
<th>Applies to:
1111-
<td>ruby bases, ruby annotations, ruby base containers, ruby annotation containers
1112-
<tr>
1113-
<th>Inherited:
1114-
<td>yes
1115-
<tr>
1116-
<th>Percentages:
1117-
<td>N/A
1118-
<tr>
1119-
<th>Media:
1120-
<td>visual
1121-
<tr>
1122-
<th>Computed value:
1123-
<td>specified value (except for initial and inherit)
1124-
</table>
1045+
<pre class="propdef">
1046+
Name: ruby-align
1047+
Value: start | center | space-between | space-around
1048+
Initial: space-around
1049+
Applies to: ruby bases, ruby annotations, ruby base containers, ruby annotation containers
1050+
Inherited: yes
1051+
Computed value: specified value (except for ''initial'' and ''inherit'')
1052+
</pre>
11251053

11261054
<p>This property specifies how text is distributed within the various ruby boxes
11271055
when their contents do not exactly fill their respective boxes.

0 commit comments

Comments
 (0)