|
60 | 60 | </p> |
61 | 61 | <h1 class="p-name no-ref" id=title>Media Queries Level 4</h1> |
62 | 62 | <h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft, |
63 | | - <span class=dt-updated><span class=value-title title=20140414>14 April 2014</span></span></span></h2> |
| 63 | + <span class=dt-updated><span class=value-title title=20140416>16 April 2014</span></span></span></h2> |
64 | 64 | <div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/mediaqueries4/>http://dev.w3.org/csswg/mediaqueries4/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/mediaqueries4/>http://dev.w3.org/csswg/mediaqueries4/</a> |
65 | 65 | <dt>Feedback:</dt> |
66 | 66 | <dd><a href="mailto:www-style@w3.org?subject=%5Bmediaqueries%5D%20feedback">www-style@w3.org</a> |
@@ -123,8 +123,8 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class |
123 | 123 | <li><a href=#mq-list><span class=secno>2.1</span> Combining Media Queries</a> |
124 | 124 | <li><a href=#mq-prefix><span class=secno>2.2</span> Media Query Modifiers</a> |
125 | 125 | <ul class=toc> |
126 | | - <li><a href=#mq-not><span class=secno>2.2.1</span> Negating a Media Query: the <a class=css data-link-type=maybe href=#valuedef-not title=not>not</a> keyword</a> |
127 | | - <li><a href=#mq-only><span class=secno>2.2.2</span> Hiding a Media Query From Legacy User Agents: the <a class=css data-link-type=maybe href=#valuedef-only title=only>only</a> keyword</a></ul> |
| 126 | + <li><a href=#mq-not><span class=secno>2.2.1</span> Negating a Media Query: the <span class=css data-link-type=maybe title=not>not</span> keyword</a> |
| 127 | + <li><a href=#mq-only><span class=secno>2.2.2</span> Hiding a Media Query From Legacy User Agents: the <span class=css data-link-type=maybe title=only>only</span> keyword</a></ul> |
128 | 128 | <li><a href=#media-types><span class=secno>2.3</span> Media Types</a> |
129 | 129 | <li><a href=#mq-features><span class=secno>2.4</span> Media Features</a> |
130 | 130 | <ul class=toc> |
@@ -786,7 +786,7 @@ <h4 class="heading settled heading" data-level=2.4.1 id=mq-ranges><span class=se |
786 | 786 | it matches when the feature is greater than/less than/equal to the given value. |
787 | 787 |
|
788 | 788 | <div class=example> |
789 | | - A <span class=css data-link-type=maybe title="(width >= 600px)">(width >= 600px)</span> <a data-link-type=dfn href=#media-feature title="media feature">media feature</a> is true |
| 789 | + A <span class=css data-link-type=maybe>(width >= 600px)</span> <a data-link-type=dfn href=#media-feature title="media feature">media feature</a> is true |
790 | 790 | when the viewport’s width is <span class=css data-link-type=maybe title=600px>600px</span> <em>or more</em>. |
791 | 791 |
|
792 | 792 | <p> On the other hand, <span class=css data-link-type=maybe title="(width: 600px)">(width: 600px)</span> by itself is only true |
@@ -1086,11 +1086,11 @@ <h4 class="heading settled heading" data-level=2.4.4 id=mq-min-max><span class=s |
1086 | 1086 | <p> <ul> |
1087 | 1087 | <li> |
1088 | 1088 | Using a “min-” prefix on a feature name is equivalent to using the “>=” operator. |
1089 | | - For example, <span class=css data-link-type=maybe title="(min-height: 600px)">(min-height: 600px)</span> is equivalent to <span class=css data-link-type=maybe title="(height >= 600px)">(height >= 600px)</span>. |
| 1089 | + For example, <span class=css data-link-type=maybe title="(min-height: 600px)">(min-height: 600px)</span> is equivalent to <span class=css data-link-type=maybe>(height >= 600px)</span>. |
1090 | 1090 |
|
1091 | 1091 | <li> |
1092 | 1092 | Using a “max-” prefix on a feature name is equivalent to using the “<=” operator. |
1093 | | - For example, <span class=css data-link-type=maybe title="(max-width: 40em)">(max-width: 40em)</span> is equivalent to <span class=css data-link-type=maybe title="(width <= 40em)">(width <= 40em)</span>. |
| 1093 | + For example, <span class=css data-link-type=maybe title="(max-width: 40em)">(max-width: 40em)</span> is equivalent to <span class=css data-link-type=maybe>(width <= 40em)</span>. |
1094 | 1094 | </ul> |
1095 | 1095 |
|
1096 | 1096 | <p> “Discrete” type properties do not accept “min-” or “max-” prefixes. |
@@ -1149,6 +1149,8 @@ <h2 class="heading settled heading" data-level=3 id=mq-syntax><span class=secno> |
1149 | 1149 |
|
1150 | 1150 | <p> No whitespace is allowed between the "<" or ">" <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-syntax-3/#typedef-delim-token title="<delim-token>"><delim-token></a>s and the following "=" <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-syntax-3/#typedef-delim-token title="<delim-token>"><delim-token></a>, |
1151 | 1151 | if it’s present. |
| 1152 | + Whitespace <em>must</em> be present between a ')' character and a <a class=css data-link-type=maybe href=#valuedef-not title=not>not</a>, <span class=css data-link-type=maybe title=and>and</span>, or <span class=css data-link-type=maybe title=or>or</span> keyword, |
| 1153 | + and between a <a class=css data-link-type=maybe href=#valuedef-not title=not>not</a>, <span class=css data-link-type=maybe title=and>and</span>, or <span class=css data-link-type=maybe title=or>or</span> keyword and a '(' character. |
1152 | 1154 |
|
1153 | 1155 | <p> When parsing the <a class="production css-code" data-link-type=type href=#typedef-media-in-parens title="<media-in-parens>"><media-in-parens></a> production, |
1154 | 1156 | the <a class="production css-code" data-link-type=type href=#typedef-general-enclosed title="<general-enclosed>"><general-enclosed></a> branch must only be chosen if the input does not match either of the preceding branches. |
@@ -1436,7 +1438,7 @@ <h3 class="heading settled heading" data-level=5.1 id=resolution><span class=sec |
1436 | 1438 | and in <a class=property data-link-type=propdesc title=max-resolution>max-resolution</a> queries the most-dense dimensions must be compared instead. |
1437 | 1439 | A <a class=property data-link-type=propdesc href=#descdef-resolution title=resolution>resolution</a> query that’s not evaluated in a <a data-link-type=dfn href=#range-context title="range context">range context</a> never matches a device with non-square pixels. |
1438 | 1440 |
|
1439 | | - <p class=issue id=issue-0e6ffa6f><a class=self-link href=#issue-0e6ffa6f></a> |
| 1441 | + <p class=issue id=issue-82c28e24><a class=self-link href=#issue-82c28e24></a> |
1440 | 1442 | Figure out how to make the above work properly for </> syntax. |
1441 | 1443 | Just translate it over directly? |
1442 | 1444 | That prevents you from doing a "less than/greater than" dichotomy without using <a class=css data-link-type=maybe href=#valuedef-not title=not>not</a>. |
@@ -2446,7 +2448,7 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In |
2446 | 2448 | That prevents you from doing a "less than/greater than" dichotomy without using <a class=css data-link-type=maybe href=#valuedef-not title=not>not</a>. |
2447 | 2449 | Hmm. |
2448 | 2450 |
|
2449 | | -<a href=#issue-0e6ffa6f> ↵ </a></div><div class=issue> |
| 2451 | +<a href=#issue-82c28e24> ↵ </a></div><div class=issue> |
2450 | 2452 | Another media feature should probably be added to deal with the type of resolution authors want to know to deal with monochrome printing. |
2451 | 2453 |
|
2452 | 2454 | <a href=#issue-7ddcf400> ↵ </a></div><div class=issue> |
|
0 commit comments