[Bug 28693] Implement context sensitive rtl command for resource loader

2011-08-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

--- Comment #7 from Krinkle krinklem...@gmail.com 2011-08-05 06:47:05 UTC ---
 I still don't understand why one must introduce new classes related to
directionality, this makes styling a page a lot harder. When styling one should
not be aware of directionality.

If it's possible to override a class in PHP from foo to foo-ltr or
foo-rtl, isn't it just as easy to let PHP output 'div class=foo
dir=rtl' or 'div class=foo dir=ltr' ?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28693] Implement context sensitive rtl command for resource loader

2011-08-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

--- Comment #8 from Niklas Laxström niklas.laxst...@gmail.com 2011-08-05 
07:08:05 UTC ---
Heard in the i18n talk: (text) directionality should be in html.

Anyway, due how css is, one needs to be aware of the directionality.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28693] Implement context sensitive rtl command for resource loader

2011-07-11 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

Robin Pepermans (SPQRobin) robinp.1...@gmail.com changed:

   What|Removed |Added

 CC||robinp.1...@gmail.com

--- Comment #4 from Robin Pepermans (SPQRobin) robinp.1...@gmail.com 
2011-07-11 15:19:30 UTC ---
It would be useful for e.g. the Translate extension where the direction depends
on the language of the interface message (see e.g. r91881 where I added classes
named *-ltr, *-rtl added by Language-getDir() in PHP.

However, overall I don't think @doubleflip would be needed, Translate is more
an exceptional extension in terms of directionality.
Core MW is OK without it: I added sitedir-ltr/rtl (on body) for the site
content language, and mw-content-ltr/rtl classes for the page content language,
and that seems to be enough for most things. (I also had to add rules like
.mw-content-ltr .mw-content-rtl { ... } to circumvent the CSS priority system,
for cases where there was different directionality within the content.)

I think it would be more useful if there was something like
/* @flipclasses */ .class-ltr { margin-left:1em; }
that would generate
.class-ltr { margin-left:1em; }
and
.class-rtl { margin-right:1em; }

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28693] Implement context sensitive rtl command for resource loader

2011-07-11 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

--- Comment #5 from Niklas Laxström niklas.laxst...@gmail.com 2011-07-11 
16:05:29 UTC ---
I'm leaning to WONTFIX, it doesn't seem to be as useful as I originally
thought.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28693] Implement context sensitive rtl command for resource loader

2011-07-11 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

--- Comment #6 from Robin Pepermans (SPQRobin) robinp.1...@gmail.com 
2011-07-11 17:55:40 UTC ---
Yes, however, thinking about it, what I wrote above would be quite useful
(imho):

/* @flipclasses */ .class-ltr { margin-left:1em; }
-
.class-ltr { margin-left:1em; }
+
.class-rtl { margin-right:1em; }

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28693] Implement context sensitive rtl command for resource loader

2011-06-17 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

--- Comment #3 from Krinkle krinklem...@gmail.com 2011-06-18 00:46:07 UTC ---
Note that this will most likely mess with the cascading part of CSS as those
rules will override things since they are more specific and thus are given more
points by the style parser of the browser.

ie. 


.foo { float: none; margin: 0 auto; width: 500px;  }

/* @doubleflip */
div { float: left; margin: 0; }

normally div class=foo will be centered because .foo is more specific (more
points). but with @doubleflip adding some kind of directionality (ie. [dir=rtl]
and [dir=ltr]) it could end up more specific.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28693] Implement context sensitive rtl command for resource loader

2011-05-03 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

Mark A. Hershberger m...@everybody.org changed:

   What|Removed |Added

   Keywords||bugsmash
 CC||m...@everybody.org

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28693] Implement context sensitive rtl command for resource loader

2011-04-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

--- Comment #2 from Krinkle krinklem...@gmail.com 2011-04-26 21:13:39 UTC ---
Sounds like a plausible situation.

Do we haved such a scenario currently somewhere and/or is it blocking near
development that needs this ? (trying to determine a priority)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28693] Implement context sensitive rtl command for resource loader

2011-04-25 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

Reedy s...@reedyboy.net changed:

   What|Removed |Added

   Severity|normal  |enhancement

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 28693] Implement context sensitive rtl command for resource loader

2011-04-25 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=28693

Roan Kattouw roan.katt...@gmail.com changed:

   What|Removed |Added

 CC||krinklem...@gmail.com

--- Comment #1 from Roan Kattouw roan.katt...@gmail.com 2011-04-25 12:00:14 
UTC ---
CC Krinkle

We would need this kind of feature to make pages with mixed directionality play
nice (i.e. pages where the page as a whole is RTL but some things are inside a
div dir=ltr or vice versa).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l