[Webkit-unassigned] [Bug 94077] Width and height is ignored in the image element's UA shadow DOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 16 14:00:30 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=94077





--- Comment #12 from Ryosuke Niwa <rniwa at webkit.org>  2012-08-16 14:01:03 PST ---
The problem might be even trickier. What if someone specified width/height on the shadow element?

e.g.
<img src="myAwesomeImage.png">
<script>
var img = document.querySelector('img');
var root = new ShadowRoot(img);
root.appendChild(document.createElement('shadow'));
img.style.width = '100px';
img.style.height = '200px';
root.firstChidld.style.width = '200px';
</script>

where myAwesomeImage.png has the aspect ratio of 1 to 1.5 (width to height).

Should the image be 100px width or 200px width? What should the height of the image be? 200px as specified in the light DOM or 150px given the aspect ratio?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list