Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to ship: unprefix :dir pseudo-class

43 views
Skip to first unread message

Astley Chen

unread,
May 11, 2016, 3:12:16 AM5/11/16
to dev-pl...@lists.mozilla.org
With the patches landed in bug 859301 <https://bugzilla.mozilla.org/show_bug.cgi?id=859301>, the :dir <https://developer.mozilla.org/en-US/docs/Web/CSS/:dir> CSS4 pseudo-class is now available in Firefox49 without the vender prefix.
The prefixed :-moz-dir pseudo-class will be kept for a short transition period(3 release cycles) and removed by bug 1270406 <https://bugzilla.mozilla.org/show_bug.cgi?id=1270406>.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=859301
Spec: https://drafts.csswg.org/selectors-4/#the-dir-pseudo
Target Release: Firefox 49

—--
Best Regards,
Astley Chen | Mozilla Taiwan


Mike de Boer

unread,
May 11, 2016, 4:19:58 AM5/11/16
to Astley Chen, Mozilla dev-platform mailing list mailing list
We use :-moz-locale-dir extensively in frontend code. Who will own converting that to the unprefixed version?
Or, if :-moz-locale-dir is still supported after the transition period, can we discuss deprecating it in favour of unprefixed alternatives?

Thanks,

Mike.
> _______________________________________________
> dev-platform mailing list
> dev-pl...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform

Cameron McCormack

unread,
May 11, 2016, 4:31:57 AM5/11/16
to Mike de Boer, Astley Chen, Mozilla dev-platform mailing list mailing list
Mike de Boer:
> We use :-moz-locale-dir extensively in frontend code. Who will own
> converting that to the unprefixed version? Or, if :-moz-locale-dir
> is still supported after the transition period, can we discuss
> deprecating it in favour of unprefixed alternatives?

:-moz-locale-dir is kind of XUL-specific, so I don’t think there’s an
obvious standards track alternative. (It basically means “is this
element in a XUL document for which
https://dxr.mozilla.org/mozilla-central/source/dom/xul/XULDocument.cpp#4488
returns a value that matches the pseudo-classes’ argument”, which
involves looking at localedir="" on the root element or a pref.)

--
Cameron McCormack ≝ http://mcc.id.au/

Neil Deakin

unread,
May 11, 2016, 9:21:48 AM5/11/16
to Mike de Boer, Mozilla dev-platform mailing list mailing list
For a xul document, it actually means match the directionality of the
locale of the user agent for that document. It never matches in an html
document, although there is a bug 588996 to support this.

L. David Baron

unread,
May 11, 2016, 12:25:14 PM5/11/16
to Mike de Boer, Astley Chen, Mozilla dev-platform mailing list mailing list
On Wednesday 2016-05-11 18:31 +1000, Cameron McCormack wrote:
> Mike de Boer:
> > We use :-moz-locale-dir extensively in frontend code. Who will own
> > converting that to the unprefixed version? Or, if :-moz-locale-dir
> > is still supported after the transition period, can we discuss
> > deprecating it in favour of unprefixed alternatives?
>
> :-moz-locale-dir is kind of XUL-specific, so I don’t think there’s an
> obvious standards track alternative. (It basically means “is this
> element in a XUL document for which
> https://dxr.mozilla.org/mozilla-central/source/dom/xul/XULDocument.cpp#4488
> returns a value that matches the pseudo-classes’ argument”, which
> involves looking at localedir="" on the root element or a pref.)

To be clear, this change doesn't affect :-moz-locale-dir at all.
What's changing is that :-moz-dir (no "locale") is now preferably
known as :dir, and :-moz-dir will go away in a bit.

-David

--
𝄞 L. David Baron http://dbaron.org/ 𝄂
𝄢 Mozilla https://www.mozilla.org/ 𝄂
Before I built a wall I'd ask to know
What I was walling in or walling out,
And to whom I was like to give offense.
- Robert Frost, Mending Wall (1914)
signature.asc
0 new messages