E480 [css-ui] Add value `horizontal-text` to property `cursor` · Issue #3196 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-ui] Add value horizontal-text to property cursor #3196

@Zhang-Junzhi

Description

@Zhang-Junzhi

There are currently two kinds of "text" icon in cursor at ui-4 draft: text and vertical-text .

For text, the spec says the UA can either always render the cursor as in horizontal writing mode, or render it based on the writing-mode value. IMO, this has two issues:

  1. This is logical asymmetry. Why can text be specially treated as always for horizontal writing mode as an alternative, why can't it be treated as always for vertical writing mode?

  2. Also this is problematic if the designer really wants the cursor to depend on the writing mode, because according to the spec, the behaviour of the text doesn't garantee the cursor is writing-mode dependent.

I suggest we change the text to be always writing-mode dependent, and add a new value horizontal-text to cursor. I don't think there are compatibility problems in the real world, as the writing mode isn't widely used for now. The earlier we change it, the smaller the problem it would cause.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0