Skip to content

Commit bff1c39

Browse files
committed
[css-ui-4] text cursors must respect writing modes
Closes w3c#3196
1 parent 9f71e7d commit bff1c39

3 files changed

Lines changed: 34 additions & 4 deletions

File tree

css-ui-4/Overview.bs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,12 @@ Values have the following meanings:
718718
Specifically, ''cursor/auto'' behaves as ''cursor/text'' over selectable text or editable elements,
719719
and ''cursor/default'' otherwise.
720720

721+
Note: When over selectable text or editable elements,
722+
as it does with ''cursor/text'',
723+
the UA must use a vertical or horizontal text cursor,
724+
as appropriate for the [=writing mode=] of the element,
725+
and may take transforms and other visual effects into account as well.
726+
721727
<dt style="cursor:default"><dfn>default</dfn>
722728
<dd>The platform-dependent default cursor.
723729
Often rendered as an arrow.
@@ -772,11 +778,16 @@ Values have the following meanings:
772778

773779
<dt style="cursor:text"><dfn>text</dfn>
774780
<dd>
775-
Indicates text that may be selected. Often rendered as a vertical I-beam.
776-
User agents may automatically display a horizontal I-beam/cursor
781+
Indicates text that may be selected. Often rendered as an I-beam.
782+
User Agents must automatically display
783+
a vertical I-beam/cursor over elements with a horizontal [=writing mode=],
784+
and a horizontal I-beam/cursor
777785
(e.g. same as the ''vertical-text'' keyword)
778-
for vertical text, or for that matter,
779-
any angle of I-beam/cursor for text that is rendered at any particular angle.
786+
over elements in a vertical [=writing mode=].
787+
Additionally, User Agents may take transforms (see [[CSS-TRANSFORMS-1]])
788+
or other visual effects such as text on a path (See [[SVG2#TextLayoutPath]]),
789+
when chosing between the horizontal or vertical text cursor,
790+
and may display any angle of I-beam/cursor for text that is rendered at any particular angle.
780791

781792
<dt style="cursor:vertical-text"><dfn>vertical-text</dfn>
782793
<dd>Indicates vertical-text that may be selected.
@@ -2104,6 +2115,7 @@ This appendix is <em>informative</em>.
21042115
<li>Clarify interaction between text-overflow and annonymous block containers
21052116
<li>Require the ''cursor/pointer'' cursor for hyperlinks in all document formats
21062117
<li>Moved the 'box-sizing' and 'text-overflow' properties to [[CSS-SIZING-3]] and [[CSS-OVERFLOW-4]] respectively.
2118+
<li>Changed the requirement that the ''cursor/text'' cursor matches the writing mode from MAY to MUST
21072119
</ul>
21082120

21092121
<h3 id=changes-22-09-2015 class=no-num>Changes from the

css-ui-4/issues-fpwd-2015.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ <h1>CSS Basic User Interface Module Level 4 Disposition of Comments for 2015-09-
145145
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2664#issuecomment-388486742'>https://github.com/w3c/csswg-drafts/issues/2664#issuecomment-388486742</a>
146146
Closed: Accepted
147147
Resolved: <a href='https://github.com/w3c/csswg-drafts/issues/2664#issuecomment-395243086'>https://github.com/w3c/csswg-drafts/issues/2664#issuecomment-395243086</a></pre>
148+
<pre class='a' id='issue-15'>
149+
Issue 15. <a href='#issue-15'>#</a>
150+
Summary: Make the text cursor better match writing modes
151+
From: 張俊芝 (Zhang-Junzhi)
152+
Comment: <a href='https://github.com/w3c/csswg-drafts/issues/3196'>https://github.com/w3c/csswg-drafts/issues/3196</a>
153+
Comment: <a href='https://github.com/w3c/csswg-drafts/issues/3196#issuecomment-427467122'>https://github.com/w3c/csswg-drafts/issues/3196#issuecomment-427467122</a>
154+
Response: <a href='https://github.com/w3c/csswg-drafts/issues/3196#issuecomment-427736600'>https://github.com/w3c/csswg-drafts/issues/3196#issuecomment-427736600</a>
155+
Closed: Accepted
156+
Resolved: <a href='https://github.com/w3c/csswg-drafts/issues/3196#issuecomment-430693269'>https://github.com/w3c/csswg-drafts/issues/3196#issuecomment-430693269</a></pre>
148157
<script>
149158
(function () {
150159
var sheet = document.styleSheets[0];

css-ui-4/issues-fpwd-2015.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,12 @@ Comment: https://github.com/w3c/csswg-drafts/issues/2664
121121
Response: https://github.com/w3c/csswg-drafts/issues/2664#issuecomment-388486742
122122
Closed: Accepted
123123
Resolved: https://github.com/w3c/csswg-drafts/issues/2664#issuecomment-395243086
124+
----
125+
Issue 15.
126+
Summary: Make the text cursor better match writing modes
127+
From: 張俊芝 (Zhang-Junzhi)
128+
Comment: https://github.com/w3c/csswg-drafts/issues/3196
129+
Comment: https://github.com/w3c/csswg-drafts/issues/3196#issuecomment-427467122
130+
Response: https://github.com/w3c/csswg-drafts/issues/3196#issuecomment-427736600
131+
Closed: Accepted
132+
Resolved: https://github.com/w3c/csswg-drafts/issues/3196#issuecomment-430693269

0 commit comments

Comments
 (0)