I'm working with a framework where a global css rule
img {
width: 100%;
}
is set - that I cannot change. Now I'm working with a WYSIWYG editor that resizes images by setting their (old) width property. Is there any chance to reset it to the element's size via css?
e.g.
.container img {
width: unset; // (or initial)
}
But that obviously doesn't work. Element inspector tells me
initial
removed: 100%
removed: 100px (value of the width property)
Here is a Stackblitz showing the issue: https://stackblitz.com/edit/web-platform-rjtfrt?file=styles.css
I want the images' width to be 200 by just changing .container img.