Aspect Ratio Media Elements and intrinsicsize

added by JavaScript Kicks
9/18/2018 8:40:58 AM

411 Views

If you need an aspect-ratio sized (or any element that can have children), you can do it. Perhaps the cleanest way is a custom-property-sized pseudo-element that pushes the correct minimum height through padding-based-on-width. But media elements like don't have children.


0 comments