RE: Suggested syntax for the hflip attribute


Hi!

 

I would make sure that any css attribute for images in an rtl versus ltr context allows one to specify 'no change.'

 

It is in any case of course the content author's job to switch float left to float right and vice versa -- which can be done with css of course as
you can actually specify now -- for an image -- different css classes
with different properties -- properties such as float left float right etc.


Of course, I don't know of any selectors for dir however that work like the selectors for language --
that is what is needed -- it would be nice if these selectors could be used to change the class of an image or paragraph 
so that you can have one class of img for a dir of rtl 

:dir(rtl) { img: img.rightaligned; } and one class for a dir of ltr 
Here are how the dir selectors could work to change block element styling:  
:dir(rtl) { position: absolute; right: 30px; top: 30px; }
:dir(ltr) { position: absolute; left: 30px; top: 30px; }
Here is another way -- that changes the styling according to dir
for an element class or even user-defined class [for example you could
have img.alignnear:dir(rtl) and img.alignfar:dir(rtl) etc]
img:dir(rtl) { float: right; }
img:dir(ltr) { float: left; }


Regarding the alt attribute, char escapes are not supported in the alt attribute either.

 

(What we need are more css styling that browsers will not support, or that browsers will support so differentially that document creators need to write books for the styling to work at all -- but o.k. why not?)
From: Eyal Sela <eyal@isoc.org.il> 
Date: Wed, 7 Apr 2010 16:40:59 +0300

> *** The workaround suggested for title on an outer element doesn't work on
> an alt. on the other hand, you don't really need that workaround since you
> can put the alt direction in the dir attribute, which has on other use on an
> image.  we agree that it would be clearest to have altdir and titledir.

ME] I just did not get anywhere using dir on an img element. 

Thanks.
Best,
C. E. Whitehead
From: Norbert Lindenberg ♻ <norbert.lindenberg@yahoo-inc.com> 
Date: Fri, 16 Apr 2010 20:52:25 -0700
Cc: Norbert Lindenberg ♻ <norbert.lindenberg@yahoo-inc.com>, "Aharon (Vladimir) Lanin" <aharon@google.com>, Simon Montagu <smontagu@smontagu.org> 
To: Behdad Esfahbod <behdad@behdad.org>, public-i18n-bidi@w3.org, fantasai <fantasai.lists@inkedblade.net> 

> In a discussion I had with the bidi experts here at Yahoo we came to  
> the conclusion that

> a) the hflip attribute is not really useful because it works only for  
> very simple unshaded images,

> b) support in CSS to select an image based on the direction of the  
> context is what's really needed.

> Fantasai wrote on 2010-03-17 saying that the CSS working group "is  
> considering selectors based on the HTML-resolved base direction of the  
> element, e.g. :rtl and :ltr  to style elements differently based on  
> their HTML-declared base directionality." It seems that this feature  
> in CSS would enable our preferred solution.

> Norbert

            

Received on Tuesday, 20 April 2010 00:00:39 UTC