Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-lists-3] Should marker-side affect 'direction' computation? #4202

Open
fantasai opened this issue Aug 16, 2019 · 2 comments
Open

[css-lists-3] Should marker-side affect 'direction' computation? #4202

fantasai opened this issue Aug 16, 2019 · 2 comments
Labels
css-lists-3 Current Work i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.

Comments

@fantasai
Copy link
Collaborator

fantasai commented Aug 16, 2019

https://lists.w3.org/Archives/Public/www-style/2012Oct/0118.html

I think currently, marker-side only affects the position. Should it also affect direction? If it doesn't, how would we get the list marker to match the list's direction?

@fantasai fantasai added css-lists-3 Current Work i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. labels Aug 16, 2019
@fantasai
Copy link
Collaborator Author

See also thread including http://www.w3.org/mid/001d01cb04e1$37496260$a5dc2720$@com

@fantasai
Copy link
Collaborator Author

Chatted with @emilio about this today, and the problem is the style computation implications of making direction pull from the parent box in the case of marker-side is too complicated to be practical. direction is already an early dependency of most style computation (due to its affecting the cascade of logical properties), and this would make it depend on marker-side, list-style-position, and display as well as the ::marker’s originating element's parent box’s direction.

The suggestion here is to instead ask authors to compensate via style rule, and to put the compensation code in an example in the spec:

@supports (marker-side) {
  X { marker-side: match-parent / list-container / whatever we decide to call it; }
  *:dir(rtl) > X::marker { direction: rtl; }
  *:dir(ltr) > X::marker { direction: ltr; }
}

(Of course all of this can be worked around by having a inner wrapper element to which the direction is applied, rather than setting dir on the list-item itself.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-lists-3 Current Work i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
Projects
None yet
Development

No branches or pull requests

1 participant