[whatwg] Invalid values of dir attribute causing change in appearance?

2 views
Skip to first unread message

L. David Baron

unread,
Jan 24, 2012, 6:09:43 PM1/24/12
to wha...@whatwg.org
http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#bidirectional-text
specifies that UA style sheets should have the rule:
[dir] { unicode-bidi: embed; }

This implies that invalid values of the dir attribute should cause a
change in presentation. This seems wrong to me, on the general
principle that invalid values of attributes should be ignored.
(Though perhaps this isn't a general principle that we're following
anymore? I rather thought it was, though.)

I tend to think that only the known values of the dir attribute
should cause the unicode-bidi:embed styling.

(I'm asking since this has been tested and bugs filed:
https://bugzilla.mozilla.org/show_bug.cgi?id=713621 .)

-David

--
𝄞 L. David Baron http://dbaron.org/ 𝄂
𝄢 Mozilla http://www.mozilla.org/ 𝄂

Ian Hickson

unread,
Apr 2, 2012, 5:15:11 PM4/2/12
to L. David Baron, wha...@whatwg.org
On Tue, 24 Jan 2012, L. David Baron wrote:
>
> http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#bidirectional-text
> specifies that UA style sheets should have the rule:
> [dir] { unicode-bidi: embed; }
>
> This implies that invalid values of the dir attribute should cause a
> change in presentation. This seems wrong to me, on the general
> principle that invalid values of attributes should be ignored. [...]

>
> I tend to think that only the known values of the dir attribute should
> cause the unicode-bidi:embed styling.

Fixed as suggested for all instances of [dir] in the UA style sheet.

--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'

Reply all
Reply to author
Forward
0 new messages