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

Consider using marker-side: match-parent; and text-align: match-parent; in the UA stylesheet #6474

Closed
zcorpan opened this issue Mar 10, 2021 · 1 comment · Fixed by #6989
Closed

Comments

@zcorpan
Copy link
Member

zcorpan commented Mar 10, 2021

From #4816 (review) comment by @domenic

Could you say a bit more about the comparison with https://drafts.csswg.org/css-lists/#ua-stylesheet ? Specific things I wonder about:

  • [...]
  • marker-side: match-parent; on ol, ul
  • text-align: match-parent; on li

(marker-side should probably apply to menu as well.)

marker-side is defined here: https://drafts.csswg.org/css-lists/#marker-side
text-align: match-parent is defined here: https://drafts.csswg.org/css-text/#valdef-text-align-match-parent

None of Gecko, WebKit, Chromium support the marker-side property, AFAICT.

Gecko has text-align: match-parent; on li: https://searchfox.org/mozilla-central/rev/2b99ea2e97eef00a8a1c7e24e5fe51ab5304bc42/layout/style/res/html.css#603 (Bug 645642)

WebKit and Chromium use text-align: -webkit-match-parent;:
https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/html/resources/html.css;l=357;drc=78c94894dfa3edca8d26b643f592751575edaf5a
https://github.com/WebKit/WebKit/blob/c87fa091ba26dabd4367c97c99bc5a9b448a97f1/Source/WebCore/css/html.css#L302

cc @whatwg/css

@udaykahar29
Copy link

hey can i work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants