File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727
2828 < h1 id =cssom-view-module > CSSOM View Module</ h1 >
2929
30- < h2 class ="no-num no-toc " id =w3c-doctype > Editor's Draft 25 August 2010</ h2 >
30+ < h2 class ="no-num no-toc " id =w3c-doctype > Editor's Draft 26 August 2010</ h2 >
3131
3232 < dl >
3333 < dt > This Version:
3434
3535 < dd > < a
36- href ="http://www.w3.org/TR/2010/ED-cssom-view-20100825 / "> http://www.w3.org/TR/2010/ED-cssom-view-20100825 /</ a >
36+ href ="http://www.w3.org/TR/2010/ED-cssom-view-20100826 / "> http://www.w3.org/TR/2010/ED-cssom-view-20100826 /</ a >
3737
3838 < dt > Latest Version:
3939
@@ -499,8 +499,8 @@ <h3 id=the-mediaquerylist-interface><span class=secno>3.1. </span>The <code
499499 < p > A simple piece of code that detects changes in the orientation of the
500500 viewport can be written as follows:</ p >
501501
502- < pre > < code > function handleOrientationChange(landscape ) {
503- if(landscape)
502+ < pre > < code > function handleOrientationChange(mql ) {
503+ if(mql.matches) // landscape
504504 …
505505 else
506506 …
Original file line number Diff line number Diff line change @@ -354,8 +354,8 @@ <h3 id="the-mediaquerylist-interface">The <code title="">MediaQueryList</code> I
354354 < div class ="example ">
355355 < p > A simple piece of code that detects changes in the orientation of the
356356 viewport can be written as follows:</ p >
357- < pre > < code > function handleOrientationChange(landscape ) {
358- if(landscape)
357+ < pre > < code > function handleOrientationChange(mql ) {
358+ if(mql.matches) // landscape
359359 …
360360 else
361361 …
You can’t perform that action at this time.
0 commit comments