Skip to content

Commit f205ff9

Browse files
committed
[css-text-decor][css-ruby] Allow UA to shift ruby/emphasis marks if they conflict with underlines/overlines. <#160>
1 parent 0ff76a5 commit f205ff9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

css-ruby/Overview.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,13 @@ Ruby Text Decoration</h3>
11561156
<p>Text decoration may be specified directly on ruby base containers
11571157
and ruby annotation containers:
11581158
in such cases it is propagated to all of the container's bases or annotations (respectively),
1159-
and is also drawn between them.
1159+
and is also drawn between them for continuity.
1160+
1161+
<p>The positions of ruby annotations may be adjusted to avoid conflicts
1162+
with overline and underline decorations applied to the base text.
1163+
In the basic case of consistent font size and baseline alignment,
1164+
an underline or overline is to be positioned
1165+
between the base level and any annotations on that side.
11601166

11611167
<p class="issue">This section needs some clarification about
11621168
drawing decorations between the content of adjacent bases/annotations.

css-text-decor/Overview.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,8 @@ Emphasis Mark Position: the 'text-emphasis-position' property</h3>
768768
<p>Emphasis marks are drawn exactly as if each character was
769769
assigned the mark as its ruby annotation text with the ruby position
770770
given by 'text-emphasis-position' and the ruby alignment as centered.
771+
Note that this position may be adjusted if it conflicts
772+
with underline or overline decorations.
771773

772774
<p>The effect of emphasis marks on the line height is the same as for
773775
ruby text.</p>

0 commit comments

Comments
 (0)