Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Issue 14141004: Fix table sizing when 'max-width' is used (Closed)

Created:
7 years, 8 months ago by Julien - ping for review
Modified:
7 years, 8 months ago
Reviewers:
esprehn, ojan
CC:
blink-reviews, jchaffraix+rendering, esprehn
Visibility:
Public.

Description

Fix table sizing when 'max-width' is used r143534 make <table> abide by 'max-width' all the time which is wrong. Per the CSS specification, a table should be wide enough to fit its content, regardless of 'max-width'. r140479 fixed part of the regression from that change but made the same fatal mistake by constraining min-content to fit 'max-width'. The fix is to avoid constraining min-content and ensure that the table logical width is at least its min-content size. BUG=173966 TEST=fast/table/html-table-width-max-width-constrained.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149011

Patch Set 1 #

Total comments: 3

Patch Set 2 : Updated the test to use Ahem for consistency across platforms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -11 lines) Patch
M LayoutTests/fast/table/css-table-max-width.html View 1 3 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/table/css-table-max-width-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/fast/table/html-table-width-max-width-constrained.html View 1 chunk +34 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/html-table-width-max-width-constrained-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderTable.cpp View 4 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Julien - ping for review
7 years, 8 months ago (2013-04-18 17:58:00 UTC) #1
esprehn
All the try jobs are red, were those unrelated? Also does Firefox pass that test? ...
7 years, 8 months ago (2013-04-19 08:07:25 UTC) #2
Julien - ping for review
> All the try jobs are red, were those unrelated? Mostly. I see the existing ...
7 years, 8 months ago (2013-04-19 21:29:12 UTC) #3
ojan
lgtm I think this is fine for now. Long-term I've been hoping that we add ...
7 years, 8 months ago (2013-04-19 22:44:01 UTC) #4
ojan
The thing I would like about that is that it'd be one few way in ...
7 years, 8 months ago (2013-04-19 22:44:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jchaffraix@chromium.org/14141004/11001
7 years, 8 months ago (2013-04-24 16:03:41 UTC) #6
commit-bot: I haz the power
7 years, 8 months ago (2013-04-24 16:04:04 UTC) #7
Message was sent while issue was closed.
Change committed as 149011

Powered by Google App Engine
This is Rietveld 408576698