[Webkit-unassigned] [Bug 50916] New: Add support for dir=auto
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 13 04:40:15 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=50916
Summary: Add support for dir=auto
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://dev.w3.org/html5/spec/Overview.html#the-dir-att
ribute
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: playmobil at google.com
CC: mitz at webkit.org, xji at chromium.org, rniwa at webkit.org
Blocks: 50910
>From http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute:
The auto keyword, which maps to the auto state
Indicates that the contents of the element are explicitly embedded text, but that the direction is to be determined programmatically using the contents of the element (as described below).
The heuristic used by this state is very crude (it just looks at the first character with a strong directionality, in a manner analogous to the Paragraph Level determination in the bidirectional algorithm). Authors are urged to only use this value as a last resort when the direction of the text is truly unknown and no better server-side heuristic can be applied.
...
If the element's dir attribute is in the auto state
If the element is a bdi element and the dir attribute is not in a defined state (i.e. it is not present or has an invalid value)
Find the first character in tree order that matches the following criteria:
The character is from a text node that is a descendant of the element whose directionality is being determined.
The character is of bidirectional character type L, AL, or R. [BIDI]
The character is not in a text node that has an ancestor element that is a descendant of the element whose directionality is being determined and that is either:
A bdi element.
A script element.
A style element.
An element with a dir attribute in a defined state.
If such a character is found and it is of bidirectional character type AL or R, the directionality of the element is 'rtl'.
Otherwise, the directionality of the element is 'ltr'.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list