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

Issue with "text-align": Raise visibility of 'start' and 'end' values #7295

Closed
r12a opened this issue Jul 26, 2021 · 5 comments · Fixed by #7331
Closed

Issue with "text-align": Raise visibility of 'start' and 'end' values #7295

r12a opened this issue Jul 26, 2021 · 5 comments · Fixed by #7331
Assignees
Labels
Content:CSS Cascading Style Sheets docs p2 We want to address this but may have other higher priority items.

Comments

@r12a
Copy link

r12a commented Jul 26, 2021

MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/text-align

What information was incorrect, unhelpful, or incomplete?

It would be helpful for internationalisation of the Web to encourage the use of 'start' and 'end' rather than 'left' and 'right', unless the latter are specifically required.

Specific section or headline?

It would be good to add text-align:start and text-align:end to the CSS Demo.
I would recommend moving those values to the top of the list in the Syntax section.
They are already at the head of the list in the Values section, which is great, but they are shown as experimental, whereas all major browsers support them now, and 'start' is even the CSS initial value.
Change the word 'Left' to 'Start' in the examples section.

Did you test this? If so, how?

https://www.w3.org/International/i18n-tests/results/text-align#start

MDN Content page report details
@r12a
Copy link
Author

r12a commented Jul 28, 2021

Many thanks for fixing this.

Would you like some Arabic or Hebrew text to use as a second paragraph in the Start alignment example? I can provide, for example, article 1 of the Universal Declaration of Human Rights. Just let me know if you want to. Happy for this to be ignored, otherwise.

@teoli2003
Copy link
Member

I like the idea, but I'll let @rachelandrew decide.

@rachelandrew
Copy link
Collaborator

@r12a that would be excellent, I'd be very happy to add that in.

@r12a
Copy link
Author

r12a commented Jul 28, 2021

Ok, here's the code with an additional paragraph, plus dir and lang attributes. I split the text into 4 lines, similarly to the Latin text, though it's not one sentence per line. Hopefully, that should do the trick.

<p class="example" lang="la">
  Integer elementum massa at nulla placerat varius.
  Suspendisse in libero risus, in interdum massa.
  Vestibulum ac leo vitae metus faucibus gravida ac in neque.
  Nullam est eros, suscipit sed dictum quis, accumsan a ligula.
</p>
<p class="example" dir="rtl" lang="he">
  כל בני אדם נולדו בני חורין ושווים
  בערכם ובזכויותיהם. כולם חוננו בתבונה
  ובמצפון, לפיכך חובה עליהם לנהוג
  איש ברעהו ברוח של אחוה.
</p>

It should look something like this when displayed in the box (i hope it's long enough – if not, let me know).

Screenshot 2021-07-28 at 19 23 07

The source is https://unicode.org/udhr/d/udhr_heb.html

hth

@r12a
Copy link
Author

r12a commented Aug 10, 2021

@rachelandrew just checking whether you saw this. ^^^

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:CSS Cascading Style Sheets docs p2 We want to address this but may have other higher priority items.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants