Bug 78839 - cssText = 'display:inline-block' not working properly
Summary: cssText = 'display:inline-block' not working properly
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Unspecified
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/7h2Dh/
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-16 13:57 PST by valeriy.panfilov
Modified: 2022-07-12 16:40 PDT (History)
4 users (show)

See Also:


Attachments
a simplified test case (450 bytes, text/html)
2012-03-12 17:21 PDT, Grace Ku
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description valeriy.panfilov 2012-02-16 13:57:11 PST
Example here: http://jsfiddle.net/7h2Dh/

Steps to Reproduce:
----
(1) <span>Text<div id="wtf">Content</div>Text</span>
(2) document.getElementById( 'wtf' ).style.cssText = 'display:inline-block'

Actual Results:
---- 
<div> drops on the second line.

Expected Results: 
----
Line without breaks.
Comment 1 Luke Macpherson 2012-02-22 19:43:57 PST
Confirmed in chromium/osx.
Setting display:inline-block via cssText has different behavior to when set from a stylesheet.
Comment 2 Grace Ku 2012-03-08 10:10:37 PST
The same problem exists for setting "display:inline"
Comment 3 Grace Ku 2012-03-12 17:21:23 PDT
Created attachment 131463 [details]
a simplified test case

By simplified I mean the jsfiddle code in an html file
Comment 4 Arpita Bahuguna 2012-08-17 05:31:17 PDT
This issue seems to have been fixed, and is no longer reproducible on the latest WebKit (last verified on r106191). 

Could this perhaps be re-verified and closed accordingly?
Comment 5 Brent Fulgham 2022-07-12 16:40:43 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.