[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:44:40 PDT 2012


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





--- Comment #14 from Ryosuke Niwa <rniwa at webkit.org>  2012-08-16 14:45:11 PST ---
(In reply to comment #13)
> (In reply to comment #12)
> > 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';
> 
> This line sets style.width on <shadow>, which isn't rendered. It's a no-op, effectively.

Ah, I see. I misunderstood what shadow element does. Thanks for the clarification. However, it's somewhat inconvenient that we can't change the width & the height of the original content in the shadow DOM.

-- 
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