- From: Vincent Hardy via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 29 Oct 2011 01:04:06 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-transforms In directory hutz:/tmp/cvs-serv950 Modified Files: Overview.html Transforms.src.html alternate-spec-style.css style-toggle.js Log Message: Made style toggle work on FF/WebKit/Opera Index: style-toggle.js =================================================================== RCS file: /sources/public/csswg/css3-transforms/style-toggle.js,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- style-toggle.js 27 Oct 2011 01:38:57 -0000 1.2 +++ style-toggle.js 29 Oct 2011 01:04:04 -0000 1.3 @@ -2,16 +2,17 @@ var defaultStyleText = 'default spec. style'; var additionalStyleText = "additional spec. style"; var toggle; - - + function toggleStyle() { var st = document.getElementById('st'); if (st.hasAttribute('disabled') === true) { st.removeAttribute('disabled'); + st.disabled = false; toggle.textContent = defaultStyleText; } else { st.setAttribute('disabled', 'true'); + st.disabled = true; toggle.textContent = additionalStyleText; } } @@ -21,10 +22,6 @@ var divHead = document.getElementById('div-head'); var defaultText = additionalStyleText; - if (st.hasAttribute('disabled') === false) { - defaultText = defaultStyleText; - } - toggle = document.createElement('a'); divHead.insertBefore(toggle, divHead.firstChild); Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css3-transforms/Overview.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Overview.html 28 Oct 2011 16:33:42 -0000 1.3 +++ Overview.html 29 Oct 2011 01:04:03 -0000 1.4 @@ -9,11 +9,17 @@ <link href=default.css rel=stylesheet type="text/css"> <link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet type="text/css"> - <link disabled href=alternate-spec-style.css id=st rel=stylesheet - title="additional spec styles" type="text/css"> + <link disabled href=alternate-spec-style.css id=st + rel="alternate stylesheet" title="additional spec styles" type="text/css"> <script src=style-toggle.js type="text/javascript"></script> <style type="text/css"> + + /* Alternate stylesheet fonts are here because in some browsers (Opera 11.5) */ + /* The fonts are not applied if only loaded from the alternate stylesheet */ + @import url(http://fonts.googleapis.com/css?family=Droid+Serif:700,400,400italic,700italic); + @import url(http://fonts.googleapis.com/css?family=Droid+Sans+Mono); + .singleImgExample { display: block; margin: auto; @@ -81,15 +87,15 @@ <h1>CSS transforms</h1> - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 October + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 29 October 2011</h2> <dl> <dt>This version: <dd> <a - href="http://www.w3.org/TR/2011/ED-css3-2d-transforms-20111028/">http://dev.w3.org/csswg/css3-2d-transforms/</a> - <!--http://www.w3.org/TR/2011/WD-css3-2d-transforms-20111028--> + href="http://www.w3.org/TR/2011/ED-css3-2d-transforms-20111029/">http://dev.w3.org/csswg/css3-2d-transforms/</a> + <!--http://www.w3.org/TR/2011/WD-css3-2d-transforms-20111029--> <dt>Latest version: Index: alternate-spec-style.css =================================================================== RCS file: /sources/public/csswg/css3-transforms/alternate-spec-style.css,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- alternate-spec-style.css 28 Oct 2011 16:59:30 -0000 1.4 +++ alternate-spec-style.css 29 Oct 2011 01:04:04 -0000 1.5 @@ -1,5 +1,3 @@ -@import url(http://fonts.googleapis.com/css?family=Droid+Serif:700,400,400italic,700italic); -@import url(http://fonts.googleapis.com/css?family=Droid+Sans+Mono); body { font-family: 'Droid Serif', serif; Index: Transforms.src.html =================================================================== RCS file: /sources/public/csswg/css3-transforms/Transforms.src.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Transforms.src.html 28 Oct 2011 16:59:30 -0000 1.4 +++ Transforms.src.html 29 Oct 2011 01:04:03 -0000 1.5 @@ -7,12 +7,18 @@ <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-[STATUS].css" /> - <link id="st" href="alternate-spec-style.css" rel="stylesheet" + <link id="st" href="alternate-spec-style.css" rel="alternate stylesheet" type="text/css" disabled title="additional spec styles"> <script type="text/javascript" src="style-toggle.js"></script> - + <style type="text/css"> + + /* Alternate stylesheet fonts are here because in some browsers (Opera 11.5) */ + /* The fonts are not applied if only loaded from the alternate stylesheet */ + @import url(http://fonts.googleapis.com/css?family=Droid+Serif:700,400,400italic,700italic); + @import url(http://fonts.googleapis.com/css?family=Droid+Sans+Mono); + .singleImgExample { display: block; margin: auto;
Received on Saturday, 29 October 2011 01:07:16 UTC