Changeset 264103 in webkit
- Timestamp:
- Jul 8, 2020, 9:41:35 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/layoutformattingcontext/table-with-padding-and-border-simple-expected.html (added)
-
LayoutTests/fast/layoutformattingcontext/table-with-padding-and-border-simple.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r264102 r264103 1 2020-07-08 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][TFC] Table width is computed as if box-sizing was border-box 4 https://bugs.webkit.org/show_bug.cgi?id=214070 5 6 Reviewed by Antti Koivisto. 7 8 * fast/layoutformattingcontext/table-with-padding-and-border-simple-expected.html: Added. 9 * fast/layoutformattingcontext/table-with-padding-and-border-simple.html: Added. 10 1 11 2020-07-08 Per Arne Vollan <pvollan@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r264101 r264103 1 2020-07-08 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][TFC] Table width is computed as if box-sizing was border-box 4 https://bugs.webkit.org/show_bug.cgi?id=214070 5 6 Reviewed by Antti Koivisto. 7 8 Apparently the width property of the <table> works as if box-sizing were set to border-box (and <div style="display: table" does not). 9 10 Test: fast/layoutformattingcontext/table-with-padding-and-border-simple.html 11 12 * layout/layouttree/LayoutTreeBuilder.cpp: 13 (WebCore::Layout::TreeBuilder::buildTableStructure): 14 1 15 2020-07-07 Antoine Quint <graouts@webkit.org> 2 16 -
trunk/Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp
r262792 r264103 35 35 #include "HTMLTableCellElement.h" 36 36 #include "HTMLTableColElement.h" 37 #include "HTMLTableElement.h" 37 38 #include "InlineFormattingState.h" 38 39 #include "InvalidationContext.h" … … 316 317 tableBoxStyle.setFloating(Float::No); 317 318 tableBoxStyle.resetMargin(); 319 // FIXME: Figure out where the spec says table width is like box-sizing: border-box; 320 if (is<HTMLTableElement>(tableRenderer.element())) 321 tableBoxStyle.setBoxSizing(BoxSizing::BorderBox); 318 322 auto& tableBox = createContainer(Box::ElementAttributes { Box::ElementType::TableBox }, WTFMove(tableBoxStyle)); 319 323 appendChild(tableWrapperBox, tableBox);
Note:
See TracChangeset
for help on using the changeset viewer.