Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions developer_manual/html_css_design/css.rst
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,46 @@
+----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
| ``.inlineblock`` | Make an element an inline block |
+----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+

RTL guidelines
==============

Dos and Don'ts
^^^^^^^^^^^^^^

.. list-table::
:header-rows: 1

* - Bad
- Good
- Description
* - Use physical properties ``margin-left``
- Use logical properties ``margin-inline-start``
- Using logical propreties automatically adapts to LTR/RTL

Check failure on line 281 in developer_manual/html_css_design/css.rst

View workflow job for this annotation

GitHub Actions / Check spelling

propreties ==> properties
* - Use ``left`` or ``right``
- Use inset-inline-start/end
- Keep positiong directon aware

Check failure on line 284 in developer_manual/html_css_design/css.rst

View workflow job for this annotation

GitHub Actions / Check spelling

directon ==> direction

Check failure on line 284 in developer_manual/html_css_design/css.rst

View workflow job for this annotation

GitHub Actions / Check spelling

positiong ==> positioning, position
* - Use text-align: left/right
- Use text-align: start/end
- Text aligns correctly in both modes
* - Use border-left/right
- Use border-inline-start/end
- Borders flip correctly
* - Use float: left/right
- Use float: inline-start/end
- Float respects direction
* - Assume RTL “just works”
- Test your app with RTL languages
- Using the correct css value is not always enough to avoid bugs












Loading