[wp-trac] [WordPress Trac] #61988: Error page viewport missing initial-scale=1

WordPress Trac noreply at wordpress.org
Mon Sep 9 19:22:51 UTC 2024


#61988: Error page viewport missing initial-scale=1
--------------------------+---------------------
 Reporter:  kkmuffme      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.7
Component:  General       |     Version:
 Severity:  trivial       |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by sabernhardt):

 The `wp-includes` directory has another `viewport` tag in
 [source:tags/6.6.1/src/wp-includes/functions.php?marks=3871#L3867 wp-
 includes/functions.php] (added in [32501]).

 ----

 > It expects a float 1.0 according to docs, not 1

 I did not find a //requirement// to include the decimal, though it may be
 preferable.
 - [https://www.w3.org/TR/css-viewport-1/#meta-properties W3C's current
 draft] does not mention values.
 - [https://www.w3.org/TR/2016/WD-css-device-adapt-1-20160329/#min-scale-
 max-scale W3C's 2016 draft] shows the values `1`, `0.1`, `1.0`, `2.0`, and
 `10`.
 - [https://developer.mozilla.org/en-
 US/docs/Web/HTML/Viewport_meta_tag#viewport_basics MDN web docs] mentions
 the default `1`, minimum `0.1`, and maximum `10`.
 - Both
 [https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html
 Safari Web Content Guide] and [https://developer.chrome.com/blog/viewport-
 resize-behavior/#opting_in_to_a_different_behavior Chrome for Developers]
 suggest `1.0`.
 -
 [https://developer.android.com/develop/ui/views/layout/webapps/targeting#Viewport
 Android Developers] is the only resource I found that mentions "float" (in
 `float_value`), and its example uses `1.0`.
 - [https://css-tricks.com/probably-use-initial-scale1/ CSS Tricks]
 recommends `1`, and one of the commenters says that there is no difference
 between `1.0` and `1`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61988#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list