You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-pseudo][css-writing-modes] text-orientation and ::marker #9788
text-orientation should have an effect on ::marker, so that, for instance, you can have upright numerals in a numbered list's markers, and otherwise mixed orientation text.
Currently, all browsers fail it. I think that's a browser bug, as even though text-orientation isn't part of the set of properties that apply directly to the ::marker pseudo, it should inherit into the text inside the marker and apply there. Do we agree, or is there something somewhere in the spec that actually makes it the expected behavior?
I guess text-orientation has two (families of) effects:
change how text is laid out
change text-related units
It seems logical for the second one to be anchored on actual elements. The first one would make more sense to me to apply to text, so a possible fix for this issue would be to change the Applies To line from "all elements except[…]" to "text, and all elements except […]".
From a compat point of view, that ought to be largely OK:
on ::marker their may be sites where starting to apply it would be a change, but most likely it would be a desired change (people wouldn't specifically style markers if they didn't want an effect on markers).
the on content of tables, it won't make a difference, because while table row groups, rows, column groups, and columns are excluded, table cells are not, and so we're already inheriting and applying it there, so there would not be a difference in behavior.
If we don't want to do that, I would argue that would ought to include it in the properties explicitly allowed on ::marker.
So, it would seem that this needs no normative spec correction. We'll need at least some tests, but should we add an informative statement? Maybe include one more bullet point in example 4 highlighting the conclusion reached in #5303 (comment) that “inheritable properties that apply to inlines also apply to text”.
Activity
Loirooriol commentedon Jan 13, 2024
text-orientationis defined to apply to "all elements except table row groups, rows, column groups, and columns". Not to text.Maybe that should change, but with the current specs, browsers seem compliant here.
frivoal commentedon Jan 14, 2024
Fair point.
I guess text-orientation has two (families of) effects:
It seems logical for the second one to be anchored on actual elements. The first one would make more sense to me to apply to text, so a possible fix for this issue would be to change the Applies To line from "all elements except[…]" to "text, and all elements except […]".
From a compat point of view, that ought to be largely OK:
::markertheir may be sites where starting to apply it would be a change, but most likely it would be a desired change (people wouldn't specifically style markers if they didn't want an effect on markers).If we don't want to do that, I would argue that would ought to include it in the properties explicitly allowed on
::marker.Loirooriol commentedon Jan 14, 2024
This is upright on Gecko, Blink and WebKit:
So I guess it's implemented as applying to text indeed.
Loirooriol commentedon Jan 15, 2024
In fact since inline elements/boxes are not excluded, and it's inherited, then it needs to apply to text as per #5303 (comment).
frivoal commentedon Jan 22, 2024
So, it would seem that this needs no normative spec correction. We'll need at least some tests, but should we add an informative statement? Maybe include one more bullet point in example 4 highlighting the conclusion reached in #5303 (comment) that “inheritable properties that apply to inlines also apply to text”.
Loirooriol commentedon Jan 22, 2024
I think #5761 missed
text-orientationand it needs to be changed to also apply to text to obey the resolution from #5303.Theshrink commentedon Mar 4, 2024
[css-writing-modes] Clarify that text-orientation applies to text #9788
fantasai commentedon Mar 24, 2025
Edits made. @Loirooriol Please confirm that the issue is resolved, and close the issue if so. :) Thanks~
5 remaining items
frivoal commentedon Mar 25, 2025
Spec-wise, looks good to me. Tests added by web-platform-tests/wpt#51571
Add tests for w3c/csswg-drafts#9788 (#51571)
Bug 1956210 [wpt PR 51571] - Add test for w3c/csswg-drafts#9788, a=te…
Add tests for w3c/csswg-drafts#9788 (web-platform-tests#51571)
Bug 1956210 [wpt PR 51571] - Add test for w3c/csswg-drafts#9788, a=te…
Bug 1956210 [wpt PR 51571] - Add test for w3c/csswg-drafts#9788, a=te…
[css-pseudo] Support `text-orientation` on ::marker
[css-pseudo] Support `text-orientation` on `::marker`
Bug 1991469 - Allow text-orientation property on ::marker. r=firefox-…
Bug 1991469 - Allow text-orientation property on ::marker. r=firefox-…