File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,6 +129,20 @@ behaviour per default (actual viewport is initial viewport).</p>
129129<h2 id="atviewport-rule">
130130The <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+
132146The ''@viewport'' <a href="http://www.w3.org/TR/CSS21/syndata.html#at-rules">at-rule</a>
133147consists of the @-keyword followed by a block of descriptors
134148describing the viewport.
You can’t perform that action at this time.
0 commit comments