Closed
Bug 1705616
Opened 4 years ago
Closed 4 years ago
Aspect-ratio's auto content-based min size added block-start border and padding twice
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
89 Branch
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
aState.mBCoord
initialized with block-start border and padding in https://searchfox.org/mozilla-central/rev/5e70cd673a0ba0ad19b662c1cf656e0823781596/layout/generic/BlockReflowInput.cpp#132
So contentBSize + borderPadding.BStartEnd(wm)
added block-start border and padding twice.
https://searchfox.org/mozilla-central/rev/5e70cd673a0ba0ad19b662c1cf656e0823781596/layout/generic/nsBlockFrame.cpp#1889,1900-1903
Assignee | ||
Comment 1•4 years ago
|
||
aState.mBCoord
already includes block-start border and padding, so we
wrongly add the block-start border and padding twice when computing the
border-box content block-size. This patch fixed it, and rename
contentBSize
variable to make it clearer.
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/8550fed3a6fe
Fix aspect-ratio's auto content-based min size when the block frame has border and padding. r=boris,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/28550 for changes under testing/web-platform/tests
Comment 4•4 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox89:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in
before you can comment on or make changes to this bug.
Description
•