Skip to content

Commit b3e13f0

Browse files
committed
Tweak visibility:collapse example to work properly.
1 parent a8fe3b3 commit b3e13f0

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@
206206

207207
<h1 id=head-box-flexible>CSS Flexible Box Layout Module</h1>
208208

209-
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft, 19 July 2012</h2>
209+
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft, 20 July 2012</h2>
210210

211211
<dl>
212212
<dt>This version:
213-
<!--<dd><a href="http://www.w3.org/TR/2012/ED-css3-flexbox-20120719/">http://www.w3.org/TR/2012/WD-css3-flexbox-20120719/</a>-->
213+
<!--<dd><a href="http://www.w3.org/TR/2012/ED-css3-flexbox-20120720/">http://www.w3.org/TR/2012/WD-css3-flexbox-20120720/</a>-->
214214

215215

216216
<dd><a
@@ -1098,11 +1098,16 @@ <h3 id=visibility-collapse><span class=secno>4.3. </span> Collapsed Items</h3>
10981098
<!-- --> #main {
10991099
<!-- --> flex: 1; /* <a
11001100
href="#flexibility">Main takes up all remaining space</a> */
1101-
<!-- --> order: 1 /* <a
1102-
href="#order-property">Place it after (to the right of) the navigation</a> */
11031101
<!-- --> min-width: 12em; /* <a
11041102
href="#min-size-opt">Optimize main content area sizing</a> */
11051103
<!-- --> }
1104+
<!-- --> /* set up the menus as flexboxes so that visibility:collapse
1105+
<!-- --> will work properly */
1106+
<!-- --> nav > ul,
1107+
<!-- --> nav > ul > li {
1108+
<!-- --> display: flex;
1109+
<!-- --> flex-flow: column;
1110+
<!-- --> }
11061111
<!-- --> /* dynamically collapse submenus when not targetted */
11071112
<!-- --> nav > ul > li:not(:target):not(:hover) > ul {
11081113
<!-- --> visibility: collapse;

css3-flexbox/Overview.src.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,15 @@ <h3 id='visibility-collapse'>
771771
<!-- --> header + div { display: flex; }
772772
<!-- --> #main {
773773
<!-- --> flex: 1; /* <a href="#flexibility">Main takes up all remaining space</a> */
774-
<!-- --> order: 1 /* <a href="#order-property">Place it after (to the right of) the navigation</a> */
775774
<!-- --> min-width: 12em; /* <a href="#min-size-opt">Optimize main content area sizing</a> */
776775
<!-- --> }
776+
<!-- --> /* set up the menus as flexboxes so that visibility:collapse
777+
<!-- --> will work properly */
778+
<!-- --> nav > ul,
779+
<!-- --> nav > ul > li {
780+
<!-- --> display: flex;
781+
<!-- --> flex-flow: column;
782+
<!-- --> }
777783
<!-- --> /* dynamically collapse submenus when not targetted */
778784
<!-- --> nav > ul > li:not(:target):not(:hover) > ul {
779785
<!-- --> visibility: collapse;

0 commit comments

Comments
 (0)