Skip to content

Commit e01113c

Browse files
committed
[css-device-adap] Encourage both mobile and desktop implementations
1 parent 10d83b3 commit e01113c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

css-device-adapt/Overview.bs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,20 @@ behaviour per default (actual viewport is initial viewport).</p>
129129
<h2 id="atviewport-rule">
130130
The <dfn at-rule>@viewport</dfn> rule</h2>
131131

132+
<div class=note>
133+
<strong class="advisement">UA vendors implementing this specification
134+
are strongly encouraged to do so both for their mobile and desktop browsers.
135+
The ''@viewport'' mechanism is designed to be usable and useful
136+
on all browsers, not only mobile ones.
137+
However, if support is only available on mobile browsers for a significant time,
138+
there is a risk that authors would write ''@viewport'' rules that work on mobile
139+
but do the wrong if applied by a destkop browser.
140+
This would make it difficult to later add support ''@viewport'' in desktop browsers.</strong>
141+
<p>An example of such misguided use would be to write <code highlight="css">@viewport { width: 320px; }</code>
142+
instead of <code highlight="css">@viewport { width: auto; }</code>
143+
to make a document “mobile friendly”.
144+
</div>
145+
132146
The ''@viewport'' <a href="http://www.w3.org/TR/CSS21/syndata.html#at-rules">at-rule</a>
133147
consists of the @-keyword followed by a block of descriptors
134148
describing the viewport.

0 commit comments

Comments
 (0)