Добавляет доку про свойства ruby-align, ruby-position, ruby-overhang#5849
Open
DrakesBot12 wants to merge 13 commits intodoka-guide:mainfrom
Open
Добавляет доку про свойства ruby-align, ruby-position, ruby-overhang#5849DrakesBot12 wants to merge 13 commits intodoka-guide:mainfrom
ruby-align, ruby-position, ruby-overhang#5849DrakesBot12 wants to merge 13 commits intodoka-guide:mainfrom
Conversation
solarrust
reviewed
Sep 2, 2025
Member
solarrust
left a comment
There was a problem hiding this comment.
Очень интересно было узнать про эти свойства. Никогда не работала с иероглифами, не приходилось изучать.
Оставила небольшие редакторские предложения. Посмотри, пожалуйста
Co-authored-by: Alena Batitskaia <solarrust@users.noreply.github.com>
Co-authored-by: Alena Batitskaia <solarrust@users.noreply.github.com>
Co-authored-by: Alena Batitskaia <solarrust@users.noreply.github.com>
Co-authored-by: Alena Batitskaia <solarrust@users.noreply.github.com>
Co-authored-by: Alena Batitskaia <solarrust@users.noreply.github.com>
Co-authored-by: Alena Batitskaia <solarrust@users.noreply.github.com>
Co-authored-by: Alena Batitskaia <solarrust@users.noreply.github.com>
Co-authored-by: Alena Batitskaia <solarrust@users.noreply.github.com>
Превью контента из 05980b4 опубликовано. |
nasty23-star
approved these changes
Oct 7, 2025
Contributor
nasty23-star
left a comment
There was a problem hiding this comment.
Спасибо за интересную доку!
| 💡 В горизонтальном тексте `over` = над строкой, `under` = под строкой. | ||
| 💡 В вертикальном тексте ([`writing-mode: vertical-rl`](/css/writing-mode)) `over` = справа, `under` = слева. | ||
| 💡 `inter-character` размещает аннотацию между символами базового текста. | ||
| 💡 Значение `alternate` позволяет использовать несколько уровней аннотаций, автоматически распределяя их. Поддерживается не во всех браузерах! |
Contributor
There was a problem hiding this comment.
По желанию можно также указать, что есть значение ruby-merge https://drafts.csswg.org/css-ruby/#propdef-ruby-merge
Contributor
There was a problem hiding this comment.
и дать ссылку на спецификацию по ruby
| 💡 Свойство `ruby-overhang` полезно, когда: | ||
| - аннотация длиннее базового текста (например, фуригана к иероглифу); | ||
| - вы хотите сохранить аккуратную типографику; | ||
| - нужно избежать наложений с другими элементами. |
Contributor
There was a problem hiding this comment.
можно добавить про совместимость с ruby-align
.combined-example {
ruby-overhang: auto;
ruby-align: space-between;
ruby-position: over;
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Описание
Добавляю доку про свойства
ruby-align,ruby-position,ruby-overhangCloses #5848
Превью
ruby-align: https://content-5849.dev.doka.guide/css/ruby-align/Превью
ruby-position: https://content-5849.dev.doka.guide/css/ruby-position/Превью
ruby-overhang: https://content-5849.dev.doka.guide/css/ruby-overhang/Чек-лист
/css/color/,/tools/json/,/tools/gulp/#kak-ponyat)images/example.png,demos/example/,../demos/example/)