Skip to content

Commit 90eaeb6

Browse files
author
Rune Lillesveen
committed
[css-device-adapt] Removed circular dependency example.
1 parent 25d3d4c commit 90eaeb6

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

css-device-adapt/Overview.html

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,31 +1361,6 @@ <h2 id=media-queries><span class=secno>7. </span>Media Queries</h2>
13611361
the document as possible to avoid unnecessary re-evaluation of media
13621362
queries or reflows.
13631363

1364-
<p>The next example illustrates possible circular dependencies between
1365-
media queries and <code class=css>@viewport</code> rules. Assuming a UA
1366-
stylesheet viewport width larger than 200px, the first viewport rule would
1367-
apply causing an <a href="#actual-viewport">actual viewport</a> width of
1368-
100px. If the media queries were based on the <a
1369-
href="#actual-viewport">actual viewport</a>, a re-evaluation would apply
1370-
the second <code class=css>@viewport</code> rule which would in turn cause
1371-
the first media query to be true, which means we're back to start.
1372-
1373-
<div class=example>
1374-
<pre><!--
1375-
-->@media screen and (min-width: 200px) {
1376-
<!-- --> @viewport {
1377-
<!-- --> width: 100px;
1378-
<!-- --> }
1379-
<!-- -->}
1380-
<!-- -->
1381-
<!-- -->@media screen and (max-width: 200px) {
1382-
<!-- --> @viewport {
1383-
<!-- --> width: 300px;
1384-
<!-- --> }
1385-
<!-- -->}<!--
1386-
--></pre>
1387-
</div>
1388-
13891364
<h2 id=cssom><span class=secno>8. </span>CSSOM</h2>
13901365

13911366
<p class=issue>Properties in the CSSOM and CSSOM View specifications refer

css-device-adapt/Overview.src.html

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,31 +1102,6 @@ <h2>Media Queries</h2>
11021102
placed as early in the document as possible to avoid unnecessary
11031103
re-evaluation of media queries or reflows.</p>
11041104

1105-
<p>The next example illustrates possible circular dependencies between media
1106-
queries and <code class="css">@viewport</code> rules. Assuming a UA
1107-
stylesheet viewport width larger than 200px, the first viewport rule would
1108-
apply causing an <span>actual viewport</span> width of
1109-
100px. If the media queries were based on the
1110-
<span>actual viewport</span>, a re-evaluation would
1111-
apply the second <code class="css">@viewport</code> rule which would
1112-
in turn cause the first media query to be true, which means we're back to
1113-
start.</p>
1114-
1115-
<div class="example">
1116-
<pre><!--
1117-
-->@media screen and (min-width: 200px) {
1118-
<!-- --> @viewport {
1119-
<!-- --> width: 100px;
1120-
<!-- --> }
1121-
<!-- -->}
1122-
<!-- -->
1123-
<!-- -->@media screen and (max-width: 200px) {
1124-
<!-- --> @viewport {
1125-
<!-- --> width: 300px;
1126-
<!-- --> }
1127-
<!-- -->}<!--
1128-
--></pre>
1129-
</div>
11301105

11311106
<h2>CSSOM</h2>
11321107

0 commit comments

Comments
 (0)