Bug 148877 - Computed width and height of an object element with width and height attributes should not be auto
Summary: Computed width and height of an object element with width and height attribut...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-09-04 19:57 PDT by Ryosuke Niwa
Modified: 2019-05-02 16:17 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>