Bug 148877

Summary: Computed width and height of an object element with width and height attributes should not be auto
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: achievingnewhites, ap, cdumez, dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ryosuke Niwa 2015-09-04 19:57:14 PDT
The width and the height in the computed style of an object element should not be "auto"
if the element has width and height explicitly specified by attributes.

e.g. if we had

<object id="obj1" data="blue.html" name="o" height="50" width="100"></object>

getComputedStyle(obj1, null)["width"] should be "100px", not "auto".

This bug was found by the newly added test:
LayoutTests/http/tests/w3c/html/semantics/embedded-content/the-object-element/object-attributes.html
Comment 1 Radar WebKit Bug Importer 2015-09-04 19:57:33 PDT
<rdar://problem/22590317>