# Can we get rid of height/width auto in oneboxes?

**URL:** <https://meta.discourse.org/t/can-we-get-rid-of-height-width-auto-in-oneboxes/72579>\
**Category:** UX\
**Created:** [2017年十月23日 00:52 UTC](https://meta.discourse.org/t/can-we-get-rid-of-height-width-auto-in-oneboxes/72579 "2017-10-23T00:52:50Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年十月31日 05:26 UTC](https://meta.discourse.org/t/can-we-get-rid-of-height-width-auto-in-oneboxes/72579/17 "2017-10-31T05:26:25Z")

</div>

This is now fixed per:

[https://github.com/discourse/discourse/commit/9197feefb867fa1a028ae68b6ddc930119689600](https://github.com/discourse/discourse/commit/9197feefb867fa1a028ae68b6ddc930119689600)

The non-jittery-ness will be present on all new posts or **rebaked** posts as we needed to make some internal html changes. (note that the post processor that downloads images must run first which may take a minute or 2)

The non-jittery-ness works fine in all modern browsers (edge,firefox,chrome) but old behavior remains in IE.

It is implemented using serious levels of voodoo and CSS vars described here:

> **[Aspect Ratio Using Custom Properties And Calc » cssmojo](https://www.cssmojo.com/aspect-ratio-using-custom-properties-and-calc/)**
>
> A blog about HTML, CSS, JavaScript, Web Standards, and Accessibility.

---

_[View the full topic](https://meta.discourse.org/t/can-we-get-rid-of-height-width-auto-in-oneboxes/72579)._
