Closed
Bug 1059167
Opened 11 years ago
Closed 11 years ago
Right floated element with defined width doesn't respect right margin
Categories
(Core :: Layout: Floats, defect, P2)
Core
Layout: Floats
Tracking
()
RESOLVED
FIXED
mozilla34
| Tracking | Status | |
|---|---|---|
| firefox31 | --- | unaffected |
| firefox32 | --- | unaffected |
| firefox33 | --- | unaffected |
| firefox34 | + | fixed |
People
(Reporter: azasypkin, Assigned: jfkthame)
References
Details
(Keywords: regression, testcase)
Attachments
(3 files, 1 obsolete file)
|
479 bytes,
text/html
|
Details | |
|
1.29 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
|
2.36 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
While working on bug 1041765, we've spotted blocking Gecko regression - right floated elements can't have margin-right (see attached test case).
Everything is fine for left floated elements. For right floated elements margin has effect only if element has "width: auto;".
The issue DOES occur on the latest Nightly and B2G, and DOES NOT occur on the week-old builds.
| Reporter | ||
Comment 1•11 years ago
|
||
[Blocking Requested - why for this release]:
Blocks v2.1 blocker
blocking-b2g: --- → 2.1?
Comment 2•11 years ago
|
||
Regression range: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=daa84204a11a&tochange=dc352a7bf234
tracking-firefox34:
--- → ?
Comment 3•11 years ago
|
||
First changeset that fails the test:
changeset: 201250:54ada5ad66bb
user: Jonathan Kew <jkew@mozilla.com>
date: Sun Aug 24 15:34:44 2014 +0100
summary: bug 1046950 pt 2 - convert ComputeSize to use logical-coordinate parameters. r=smontagu
Comment 4•11 years ago
|
||
This is a regression from bug 1046950 as far as I can tell.
Specifically, in http://hg.mozilla.org/mozilla-central/rev/54ada5ad66bb the code in FloatMarginWidth() was changed from passing the margin, border, and padding to ComputeSize() to passing margin, borderpadding, and padding. So the padding gets double-counted as far as I can tell. Removing the padding style in the testcase makes the margin work correctly.
Flags: needinfo?(smontagu)
Flags: needinfo?(jfkthame)
Keywords: testcase
OS: All → Linux
Priority: P2 → --
Hardware: All → x86_64
Updated•11 years ago
|
| Assignee | ||
Comment 5•11 years ago
|
||
Yes, it's a regression; oops. Will fix and test.
(FWIW, removing "box-sizing: border-box;" from the testcase style also avoids the issue.)
Flags: needinfo?(smontagu)
Flags: needinfo?(jfkthame)
| Assignee | ||
Comment 6•11 years ago
|
||
This was an unintended change during logical-conversion; we weren't supposed to drop the subtraction of the padding here. I'll see about writing a reftest that would've caught this...
Attachment #8479906 -
Flags: review?(smontagu)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•11 years ago
|
||
Simple reftest based on the testcase here.
Attachment #8479920 -
Flags: review?(smontagu)
| Assignee | ||
Comment 8•11 years ago
|
||
It works better to actually include the test files in the patch.
Attachment #8480048 -
Flags: review?(smontagu)
| Assignee | ||
Updated•11 years ago
|
Attachment #8479920 -
Attachment is obsolete: true
Attachment #8479920 -
Flags: review?(smontagu)
Updated•11 years ago
|
status-firefox31:
--- → unaffected
status-firefox32:
--- → unaffected
status-firefox33:
--- → unaffected
status-firefox34:
--- → affected
| Assignee | ||
Comment 9•11 years ago
|
||
Tryserver job with the reftest: https://tbpl.mozilla.org/?tree=Try&rev=dfc8e92c5ae0
Updated•11 years ago
|
Attachment #8479906 -
Flags: review?(smontagu) → review+
Updated•11 years ago
|
Attachment #8480048 -
Flags: review?(smontagu) → review+
| Assignee | ||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a44566b9890b
https://hg.mozilla.org/integration/mozilla-inbound/rev/228f0275bfc8
Target Milestone: --- → mozilla34
Comment 14•11 years ago
|
||
FWIW: The newrelic blog (http://blog.newrelic.com/ , http://blog.newrelic.com/2014/08/26/security-document/ ) is broken in current Nightly, I think by this bug. (main text content overflowing & getting clipped on the right side)
Glad that this is fixed on inbound; hopefully that means the newrelic blog will be working again tomorrow or the next day. :)
Comment 15•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a44566b9890b
https://hg.mozilla.org/mozilla-central/rev/228f0275bfc8
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Updated•11 years ago
|
blocking-b2g: 2.1? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•