Open fantasai opened 3 months ago
Isn't
text-box-edge: ideographic ideographic-ink;
ambiguous?
Yeah, I guess we'd need a priority rule, like in background-position.
Possibly it's not worth allowing reordering in this case. :)
Other thought: one of the reasons I went with the text
keyword was to match up with text-top
and text-bottom
. Perhaps in the two-keyword version, they can be made explicit?
A reorderable syntax could look like:
<text-edge> = text | ideographic | ideographic-ink |
[ text-top | cap | ex | ideographic-top | ideographic-ink-top ]
|| [ text-bottom | alphabetic | ideographic-bottom | ideographic-ink-bottom ]
I'm not sure allowing reordering is worth the extra complexity for the syntax split with ideographic-top
/ideographic-bottom
for CJK web developers.
I'm ambivalent on this issue, and curious what the rest of the WG thinks. The main benefits of a reorderable syntax are
text-top ideographic-bottom
means than text ideographic
text-top
and text-bottom
keywords more obviously correspond to those same keywords in vertical-align
That said, a reorderable syntax is something that we could add later, since it's possible to combine it with the existing syntax (rather than replacing the existing syntax entirely).
The CSS Working Group just discussed [css-inline-3] Allow re-ordering of <text-edge> keywords
, and agreed to the following:
RESOLVED: we allow mix-and-match syntax for <text-edge> keywords
In line with the "re-ordering should be allowed if it's not causing parsing ambiguity" principle, maybe we should allow re-ordering of the
<text-edge>
keywords?Current syntax for
<text-edges>
(used intext-box-edge
andline-fit-edge
):(Single keywords are duplicated, or default to
text
if that's not possible.)Change to allow re-ordering:
(It also allows
alphabetic
to be specified alone, which is maybe not particularly useful, but there's no particular reason to disallow it.)