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

Unified Diff: Source/core/rendering/RenderBox.cpp

Issue 25206002: A height of a table which has position: absolute and box-sizing: border-box ignores half of the bor… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderBox.cpp
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
index b0cd4d79b14e72a0f184c0a89d600c638d763fe2..8dcfae88f6e5ddeabb49b413edc72203b420cb00 100644
--- a/Source/core/rendering/RenderBox.cpp
+++ b/Source/core/rendering/RenderBox.cpp
@@ -3665,7 +3665,10 @@ void RenderBox::computePositionedLogicalHeightUsing(Length logicalHeightLength,
// Height is never unsolved for tables.
if (isTable()) {
- logicalHeightLength.setValue(Fixed, contentLogicalHeight);
+ if (style()->boxSizing() == BORDER_BOX)
+ logicalHeightLength.setValue(Fixed, logicalHeight);
+ else
+ logicalHeightLength.setValue(Fixed, contentLogicalHeight);
logicalHeightIsAuto = false;
}

Powered by Google App Engine
This is Rietveld 408576698