Open Bug 830969 Opened 11 years ago Updated 11 years ago

Inline style editor not usable with margin, padding, border

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: mapson12, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15
Build ID: 20130105222032

Steps to reproduce:

Composer settings:
- Use CSS styles
- Pressing return creates new paragraph

Open the inline style editor on an element and set margin = 1em. 
Close and open the inline style editor again.


Actual results:

The property margin got transformed into some internal representation. Clicking OK now will remove the left and right value for the margin property.


Expected results:

Properties entered in the dialog should not change.

The same is true for border and padding.
Same as for other your bug, provide full steps to reproduce (1) Open blank Composer page, 2) Press Return, 3) Open ... menu item from ... menu, etc)
1. Open blank Composer page
2. Make sure that in the settings "Composer / Use CSS-styles instead of HTML Elements" is set.
3. type some text
4. click on the format dropdown in the toolbar and select "paragraph"
5. click on the "indent text (move right)" symbol in the toolbar (paragraph is now indented)
6. open advanced properties of the paragraph (rightclick on "p" in the element bar at the bottom, select "advanced properties"
7. click OK.

-> paragraph is not indented any more, the style attribute contains the following:

margin-left-value: 40px; 
margin-left-ltr-source: physical;
margin-left-rtl-source: physical;
To summarize the problem: when the advanced property dialog is opened and saved, it destroys css-properties margin, border, and padding.

This happens also when the "use css properties" property is not set.
Confirming on trunk
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0 SeaMonkey/2.18a1
Build identifier: 20130110003008
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86 → All
Version: SeaMonkey 2.15 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.