Re: [css3-text-layout] New editor's draft - margin-before/after/start/end etc.

HÃ¥kon,

Your modified :ttb proposal (not the modified :lang proposal) addresses
the requirement to a certain extent. 

> So, the pseudo-class selectors would mean:
> 
>   :lrt   horizontal writing is supported and @dir has been set to 'lrt'
>   :rtl   horizontal writing is supported and @dir has been set to 'rtl'
>   :ttb   vertial writing is supported

However, I am not sure if I like this proposal.

First, what is needed is  relativity based on the principal writing mode
chosen by the browser or user rather than relativity based on the
capability of the browser.  Even if a browser supports vertical writing, 
the pseudo selector should not apply when the user chooses 
horizontal writing as the principal writing mode (the writing mode of the body 
element)

Second, I think :rtl and :ttb are just too different.  The former is
based on the @dir attribute, while the latter is not.   They should 
be separated.

Third, are there any requirements for :rtl?  Isn't [dir="rtl"] 
good enough?

Fourth, Japanese and Taiwanese users will need a pseudo selector 
for horizontal writing.  It has nothing to do with the @dir attribute 
but it should apply when the browser or user chooses "horizontal" 
as the principal writing mode.  

Fifth, I have no ideas about where in the CSS3 family of specifications 
the :ttb psuedo selector will be introduced.

Sixth, *-before, etc. is already described in a editor's draft.  
It may be sketchy, but it is in the draft.  But :ttb is just an idea.

Cheers,
Makoto

Received on Friday, 4 June 2010 13:19:04 UTC