Bug 20485 - style.getProperty("overflow") returns an empty string
Summary: style.getProperty("overflow") returns an empty string
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Major
Assignee: Timothy Hatcher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-22 07:50 PDT by Timothy Hatcher
Modified: 2008-08-22 11:40 PDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (8.40 KB, patch)
2008-08-22 10:12 PDT, Timothy Hatcher
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2008-08-22 07:50:04 PDT
Toggling the overflow CSS property in the Inspector removes it when trying to enable it again.
Comment 1 Timothy Hatcher 2008-08-22 10:08:07 PDT
This turns out to be a bug in CSSMutableStyleDeclaration not returning a value for the overflow property, since overflow split into overflow-x and overflow-y and became a shorthand.
Comment 2 Timothy Hatcher 2008-08-22 10:08:25 PDT
I have a simple fix.
Comment 3 Timothy Hatcher 2008-08-22 10:12:28 PDT
Created attachment 22941 [details]
Proposed patch
Comment 4 mitz 2008-08-22 10:21:13 PDT
Comment on attachment 22941 [details]
Proposed patch

r=me
Comment 5 Timothy Hatcher 2008-08-22 11:40:41 PDT
Landed in r35892.