[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:02:30 PDT 2012


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





--- Comment #13 from Dimitri Glazkov (Google) <dglazkov at chromium.org>  2012-08-16 14:03:02 PST ---
(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.

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