Closed Bug 1059809 Opened 10 years ago Closed 10 years ago

Wrong layout with padding, box-sizing: border-box and float: right

Categories

(Core :: Layout, defect)

34 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1059167

People

(Reporter: stmoros, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:34.0) Gecko/20100101 Firefox/34.0 (Beta/Release)
Build ID: 20140828030205

Steps to reproduce:

1. create an element with a fixed width
2. create another element inside the first one
3. assign the inner element some padding, box-sizing: border-box and float: right

(see http://jsfiddle.net/ppcqtqgt/)


Actual results:

The inner element's right edge is off to the right by the total amount of its horizontal padding. 


Expected results:

The inner element's right edge should be inline with the outer element's right edge.
Component: Untriaged → Layout
Product: Firefox → Core
Fixed earlier today on inbound.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.