This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Please let me confirm the expected behavior... Let's consider the following img elements. <img id="e1" src="foo.jpg" width="300"> <img id="e2" src="foo.jpg" style="width: 300px"> And add the following shadow root to them. #shadow-root <div style="padding: 10px"> <shadow></shadow> </div> What is the expected layout? (1) #e1 has 320px width, and #e2 has 320px as well. (2) #e1 has 300px width, and #e2 has 300px as well. (3) #e1 has 320px width, but #e2 has 300px width.
The width attribute and width style property should have the same effect. Also, the behavior should be as if this is: <div style="width:300px"><div style="padding: 10px">...</div></div> Does this make sense?
(In reply to comment #1) > The width attribute and width style property should have the same effect. Also, > the behavior should be as if this is: > > <div style="width:300px"><div style="padding: 10px">...</div></div> > > Does this make sense? Got it.