denoland / dotland

[Archived] deno.land website
https://deno.land
MIT License
957 stars 626 forks source link

fix: prevent twind preflight from overwriting img and video elements height attribute #2280

Closed Im-Beast closed 2 years ago

Im-Beast commented 2 years ago

Closes #2279

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

crowlKats commented 2 years ago

unsure if this really is the right approach; this should rather be fixed "properly"

Im-Beast commented 2 years ago

This is "proper" approach or at least I don't see other way around it.

Preflight applies max-width: 100% and height: auto; to img,video and if either height or width is present in CSS (even when set to unset or both to auto) then size attributes don't really work.

crowlKats commented 2 years ago

@Im-Beast could you rebase?

Im-Beast commented 2 years ago

Will do right now

Im-Beast commented 2 years ago

Done @crowlKats