[Webkit-unassigned] [Bug 56377] WebKit's behavior for text-align inherit differs from other browsers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 17 00:33:19 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=56377





--- Comment #3 from Aharon (Vladimir) Lanin <aharon at google.com>  2011-03-17 00:33:19 PST ---
(In reply to comment #2)
> WebKit resolves text-align:start/end to left/right in CSSStyleSelector::applyProperty and then discards the original values.  Then when a child element comes along with text-align:inherit left/right is inherited from the parent rather than start/end.
> 
> According to my reading of the spec, WebKit's current behavior is actually what's expected of text-align:match-parent and is wrong for inherit.
> 
> """
> match-parent
> This value behaves the same as ‘inherit’ except that an inherited ‘start’ or ‘end’ keyword is calculated against its parent's ‘direction’ value and results in a computed value of either ‘left’ or ‘right’.
> """
> 
> The attached test case renders differently in WebKit than FF which itself differs from IE8/Opera.

I concur. FF has the correct behavior for text-align:start and end.

-- 
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