[wp-trac] [WordPress Trac] #39035: Twenty Seventeen: Header media (images and video) appear zoomed in

WordPress Trac noreply at wordpress.org
Sat Dec 3 17:14:45 UTC 2016


#39035: Twenty Seventeen: Header media (images and video) appear zoomed in
---------------------------+--------------------
 Reporter:  laurelfulford  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  4.7
Component:  Bundled Theme  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+--------------------

Comment (by laurelfulford):

 [attachment:39035.0.patch] is a first crack at one possible solution: I
 added a JavaScript check to see if `object-fit` is supported, and if it
 is, a CSS class is added that updates the styles to use it.

 One drawback is that it adds a flash of 'incorrect' styles - right now, in
 browsers that support `object-fit` you see a flash of a zoomed image/video
 that then corrects itself. It can be switched the other way, but then
 browsers that don't support `object-fit` (''shakes fist at IE'') will show
 a flash of a pretty broken image/video placement before correcting.

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


More information about the wp-trac mailing list