- From: Bert Bos <bert@w3.org>
- Date: Fri, 10 Aug 2007 12:08:58 +0200
- To: W3C CSS <www-style@w3.org>
On Friday 10 August 2007 02:44, Matthew Raymond wrote: > Perhaps I missed it, but I didn't see any thing in the CSS3 > Advanced Layout Module that specifies how to determine the initial > :current tab. The current proposal says that initially the first tab is open, unless there is a fragment ID on the URL that points to an element in some other tab, in which case that other tab is open. (It is still an open question how tabs are printed.) I also assume, but that is not part of the spec, that after pressing the Back button to go back to a page that has tabs, the tabs on that page will be open exactly as they were when you left that page. Do you think it is necessary to indicate a default tab other than the first one? > Also, how does one determine which tab is currently > selected through scripting? Does one use the CSSOM, or do you use the > Selectors API? I don't know, but I guess there will be a way to check if an element matches ':current' or not. I assume there is also already a function that tells you if an element's boxes are (partially) visible, and if so, which part. After all, tabs are just one of many ways to hide boxes behind other boxes. Bert -- Bert Bos ( W 3 C ) http://www.w3.org/ http://www.w3.org/people/bos W3C/ERCIM bert@w3.org 2004 Rt des Lucioles / BP 93 +33 (0)4 92 38 76 92 06902 Sophia Antipolis Cedex, France
Received on Friday, 10 August 2007 10:09:05 UTC