dir

object dir extends Attr

bdo - Text direction in this element. Possible values are:

  • <code>ltr</code>: Indicates that the text should go in a left-to-right direction.

  • <code>rtl</code>: Indicates that the text should go in a right-to-left direction. a, abbr, address, area, article, aside, audio, b, base, bdi, bdo, big, blockquote, body, br, button, canvas, caption, cite, code, col, colgroup, data, datalist, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, head, header, hr, html, i, iframe, img, input, ins, kbd, keygen, label, legend, li, link, main, map, mark, menu, menuitem, meta, meter, nav, noscript, object, ol, optgroup, option, output, p, param, picture, pre, progress, q, rp, rt, ruby, s, samp, script, section, select, small, source, span, strong, style, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, title, tr, track, u, ul, var, video, wbr - Is an enumerated attribute indicating the directionality of the element's text. It can have the following values:

  • <code>ltr</code>, which means <em>left to right </em>and is to be used for languages that are written from the left to the right (like English);

  • <code>rtl</code>, which means <em>right to left</em> and is to be used for languages that are written from the right to the left (like Arabic);

  • <code>auto</code>, which let the user agent decides. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then apply that directionality to the whole element.

trait Attr
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Types

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]
Inherited from
Attr

Value members

Concrete methods

@inline
def :=(v: String): AttrPair[_dir_attr]
@inline
def :=(v: Option[String]): OptionalAttrPair[_dir_attr]