3,860
edits
(→<bdo>) |
|||
Line 59: | Line 59: | ||
====<bdi>==== | ====<bdi>==== | ||
The {{tag|bdi|o}} tag is used in the same way, regardless of the text direction of the inserted string. | The {{tag|bdi|o}} tag is used in the same way, regardless of the text direction of the inserted string. | ||
{| | {| class="wikitable" style="background-color: white;" | ||
|- | |- | ||
| {{tlc|bdi|من اليمين إلى اليسار}} | ! Case !! What you type !! What you see !! Comments | ||
|- | |||
| rowspan="2" | {{tag|bdi|o}} adapts to <br>the text direction of <br>the enclosed string || {{tlc|bdi|من اليمين إلى اليسار}} || {{bdi|من اليمين إلى اليسار}} || rowspan="2" | Works for both <tt>rtl</tt> and <tt>ltr</tt> input | |||
|- | |||
| {{tlc|bdi|From left to right}} || {{bdi|From left to right}} | |||
|} | |} | ||
Line 69: | Line 72: | ||
;<big>Correct</big> | ;<big>Correct</big> | ||
{| | {| class="wikitable" style="background-color: white;" | ||
| {{ | |- | ||
! Case !! What you type !! What you see !! Comments | |||
|- | |||
| rowspan="2" | {{tag|bdo|o}} has a preset <br>directional output || {{tlc|bdo|من اليمين إلى اليسار}} || {{bdo|من اليمين إلى اليسار}} || The default direction is <tt>rtl</tt> | |||
|- | |- | ||
| {{tlc|bdo| | | {{tlc|bdo|dir{{=}}ltr|From left to right}} || {{bdo|dir=ltr|From left to right}} || <tt>ltr</tt> must be explicitly specified | ||
|} | |} | ||
;<big>Incorrect</big> | ;<big>Incorrect</big> | ||
{| | {| class="wikitable" style="background-color: white;" | ||
| {{tlc|bdo| | |- | ||
! Case !! What you type !! What you see !! Comments | |||
|- | |||
| rowspan="2" | Wrong value for <br>the {{code|dir}} attribute || {{tlc|bdo|dir{{=}}ltr|من اليمين إلى اليسار}} || {{bdo|dir=ltr|من اليمين إلى اليسار}} || rowspan="2" | The text is displayed backwards ({{tag|bdo|o}} forces the direction) | |||
|- | |- | ||
| {{tlc|bdo| | | {{tlc|bdo|From left to right}} || {{bdo|From left to right}} | ||
|} | |} | ||
edits