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

Issue 2599043002: Percent height border-box content should get correct height in percent height cells (Closed)

Created:
4 years ago by rhogan
Modified:
4 years ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2924
Project:
chromium
Visibility:
Public.

Description

Percent height border-box content should get correct height in percent height cells "For the purpose of calculating [the minimum height of a row], descendants of table cells whose height depends on percentages of their parent cell's height are considered to have an auto height if they have overflow set to visible or hidden or if they are replaced elements, and a 0px height if they have not." This CL does two things re this rule: - It ensures we respect it for replaced elements, including ones that aren't LayoutReplaced or isReplaced() objects. This is covered by the table-percent- height-* tests. - It ensures we always obey it for hidden/visible overflow elements. The CL also does two other things: - If the cell doesn't have a specified height then treat it as auto for the purposes of calculating percent heights of its children. See bug 671010 for the discussion that leads to this approach - soon to be specified we hope. Note that this results in the new behaviour of the form control elements in table-percent-height-* tests: they size as they would if they were in auto- sized <div>. Again, see bug 671010. We introduce a 'regression' in the behaviour of radio/select elements when percent-sized inside a cell that has no specified height - they now behave the same as radio/select elements when inside a div with auto height, they get a zero height. This is covered specifically in input-radio-height-inside-auto-container.html. It can also be seen in the updates to table-percent-height.html. - If we've computed the height of a cell's child using the height made available by the cell, then be sure to respect content-/border-sizing of the child. We were just assuming that children were always content-sized. These are covered by the percent-height-border-box-content-* tests and are the main fall-out in 669867. BUG=669867, 671010 Review-Url: https://codereview.chromium.org/2535173006 Cr-Commit-Position: refs/heads/master@{#438652} (cherry picked from commit 6c6315ec5c5ca31be742ebbe13cfecb43baae21a) Committed: https://chromium.googlesource.com/chromium/src/+/58eb404753d8ee142e02b9695a84c2c6c24f88ea

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -112 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/replaced/input-radio-height-inside-auto-container.html View 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/replaced/input-radio-height-inside-auto-container-expected.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/replaced/table-percent-height.html View 3 chunks +5 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/replaced/table-percent-height-text-controls.html View 2 chunks +7 lines, -26 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell.html View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-2.html View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-2-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-3.html View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-3-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/table/percent-height-border-box-content-in-cell-expected.html View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/003-expected.txt View 6 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/split-table-section-before-anonymous-block-2-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/split-table-section-before-anonymous-block-2-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/split-table-section-before-anonymous-block-4-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/table/split-table-section-before-anonymous-block-4-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/tables/mozilla/bugs/bug30692-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/replaced/table-percent-height-expected.txt View 1 chunk +10 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/replaced/table-percent-height-text-controls-expected.txt View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 4 chunks +25 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 3 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
rhogan
4 years ago (2016-12-22 13:42:25 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
58eb404753d8ee142e02b9695a84c2c6c24f88ea.

Powered by Google App Engine
This is Rietveld 408576698