Skip to content

Commit 64bd88b

Browse files
committed
[css-ruby] Add ruby-overhang:spaces
Closes #5912
1 parent 9650bf1 commit 64bd88b

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

css-ruby-1/Overview.bs

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ Abstract: This module describes the rendering model and formatting controls rela
2424
<pre class=link-defaults>
2525
spec:css-box-4; type:dfn; text:content area
2626
spec:css-text-3; type:dfn; text:character
27+
spec:css-text-3; type:dfn; text:other space separators
28+
spec:css-text-4; type:dfn;
29+
text:fullwidth opening punctuation
30+
text:fullwidth closing punctuation
31+
text:fullwidth middle dot punctuation
2732
spec:css-writing-modes-4; type:dfn; text:bidi isolation
2833
spec:html-ruby-extensions; type:element;
2934
text:rp
@@ -1821,7 +1826,7 @@ Overhanging Ruby: the 'ruby-overhang' property</h3>
18211826

18221827
<pre class="propdef">
18231828
Name: ruby-overhang
1824-
Value: auto | none
1829+
Value: auto | spaces
18251830
Initial: auto
18261831
Applies to: ruby annotation containers
18271832
Inherited: yes
@@ -1844,10 +1849,24 @@ Overhanging Ruby: the 'ruby-overhang' property</h3>
18441849
Whether, how much, and under which conditions to overhang
18451850
are determined by the UA.
18461851

1847-
<dt><dfn>none</dfn>
1852+
<dt><dfn>spaces</dfn>
18481853
<dd>
1849-
A [=ruby annotation container=] is never allowed
1850-
to extend past the [=ruby annotation container=].
1854+
When a [=ruby annotation container=] is longer than
1855+
its corresponding [=ruby base container=],
1856+
the [=ruby annotation container=] must not
1857+
overlap adjacent boxes,
1858+
except over adjacent spaces.
1859+
1860+
For this purpose,
1861+
spaces are any of the following:
1862+
* [=preserved white space=]
1863+
* [=other space separators=]
1864+
* half of the [=advance measure=] of [=fullwidth opening punctuation=],
1865+
on the [=inline-start=] side of the character
1866+
* half of the [=advance measure=] of [=fullwidth closing punctuation=],
1867+
on the [=inline-end=] side of the character
1868+
* one quarter of the [=advance measure=] of [=fullwidth middle dot punctuation=],
1869+
on both the [=inline-start=] and [=inline-end=] sides of the character
18511870
</dl>
18521871

18531872
When [=ruby annotations=] are not allowed to overhang,
@@ -1900,6 +1919,11 @@ Overhanging Ruby: the 'ruby-overhang' property</h3>
19001919
for Japanese are described by [[JLREQ]].
19011920
</div>
19021921

1922+
Additionally, for compatibility reasons,
1923+
user agents must support an additional value of <dfn value for=ruby-overhang>none</dfn>
1924+
for the 'ruby-overhang' property,
1925+
as a [=legacy value alias=] of ''ruby-overhang/spaces''.
1926+
19031927
<h3 id="line-edge">
19041928
Line-edge Alignment</h3>
19051929

0 commit comments

Comments
 (0)