RE: [css3-writing-modes][cssom-view] scrollIntoView in vertical flow

Thank you François, that's a good case. I wasn't thinking much about mouse interactions, whose positions are always physical.

I might went too far, the original issue is scrollIntoView spec doesn't work with vertical. It's probably better to focus on fixing the issue and then defer other physical/logical issues to until we define logical properties.

Fixing "scroll an element into view[1]" to consider vertical case looks safe to me. If I were missing anything here, I'd appreciate anyone's advices.

[1] http://www.w3.org/TR/cssom-view/#scroll-an-element-into-view

Regards,
Koji

-----Original Message-----
From: François REMY [mailto:fremycompany_pub@yahoo.fr] 
Sent: Tuesday, January 03, 2012 12:29 AM
To: Koji Ishii; www-style@w3.org
Subject: Re: [css3-writing-modes][cssom-view] scrollIntoView in vertical flow

I think they are sometimes used as "physical" for drag/drop. We now have "element(s)FromPoint" but it doesn't always have been the case.




-----Message d'origine----- 
From: Koji Ishii
Sent: Monday, January 02, 2012 4:11 PM
To: www-style@w3.org
Subject: [css3-writing-modes][cssom-view] scrollIntoView in vertical flow

A friend of mine found that scrollIntoView[1] doesn't work when principal 
writing mode is vertical, because the spec assumes text flows top to bottom, 
which is not true for vertical flow. He was developing a JavaScript to 
highlight text being read by SMIL[2].

I think we need to apply dimensional mapping[3] to CSSOM View. "Scroll an 
element into view"[4] must be logicalized. Whether to logicalize properties 
such as clientTop might need discussions. I think practical answer is to 
logicalize them as well because physical means many scripts must be 
re-written to run well in vertical flow, and I can't imagine good use of 
these properties as physical.

Thoughts?

[1] http://www.w3.org/TR/cssom-view/#dom-element-scrollintoview
[2] http://www.epubcafe.jp/egls/epubcon01a/0101
[3] http://dev.w3.org/csswg/css3-writing-modes/#dimension-mapping
[4] http://www.w3.org/TR/cssom-view/#scroll-an-element-into-view

Regards,
Koji 

Received on Wednesday, 4 January 2012 11:38:41 UTC