Skip to content

Commit 35facaf

Browse files
committed
[mediaqueries] Define that min/max-* is invalid in a boolean context. Matches impls.
--HG-- extra : rebase_source : b186a4e147b68df100146f23b580387b8b9b7b5e
1 parent b0ce837 commit 35facaf

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

mediaqueries/Overview.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@ Using “min-” and “max-” Prefixes On Range Features</h4>
667667
as it accepts the values ''0'' and ''1''.)
668668
</div>
669669

670+
Attempting to evaluate a min/max prefixed <a>media feature</a> in a <a>boolean context</a>
671+
is invalid and a syntax error.
672+
670673
<!--
671674
██████ ██ ██ ██ ██ ████████ ███ ██ ██
672675
██ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██

mediaqueries/Overview.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,9 @@ <h4 class="heading settled" data-level=2.4.4 id=mq-min-max><span class=secno>2.4
11061106
as it accepts the values <span class=css>0</span> and <span class=css>1</span>.)
11071107
</div>
11081108

1109+
<p>Attempting to evaluate a min/max prefixed <a data-link-type=dfn href=#media-feature title="media feature">media feature</a> in a <a data-link-type=dfn href=#boolean-context title="boolean context">boolean context</a>
1110+
is invalid and a syntax error.</p>
1111+
11091112

11101113

11111114
<h2 class="heading settled" data-level=3 id=mq-syntax><span class=secno>3 </span><span class=content>

0 commit comments

Comments
 (0)