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

Unified Diff: LayoutTests/fast/table/table-colgroup-width-not-set-with-fixed-layout.html

Issue 27690002: Not able to set width using ColGroup when table-layout is fixed. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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: LayoutTests/fast/table/table-colgroup-width-not-set-with-fixed-layout.html
diff --git a/LayoutTests/fast/table/table-colgroup-width-not-set-with-fixed-layout.html b/LayoutTests/fast/table/table-colgroup-width-not-set-with-fixed-layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..c15a1b1c0af883cc6c825d4db05d4761ba48db56
--- /dev/null
+++ b/LayoutTests/fast/table/table-colgroup-width-not-set-with-fixed-layout.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="../../resources/check-layout.js"></script>
+ <style>
+ td { font: 15px/1 Ahem }
+ </style>
+</head>
+<body onload="checkLayout('td')">
+<h3>Test for chromium bug : <a href="https://code.google.com/p/chromium/issues/detail?id=20865">20865</a>. Not able to set width using ColGroup when table-layout is fixed.</h3>
+<h4>When colgroup specify only some columns width in the table than remaining columns width set as fixed width if colspan cell present in the first row for those columns. By default these columns should set as auto width.</h4>
+ <table style="table-layout: fixed; width: 100%;" border=1px>
+ <tbody>
+ <tr>
+ <td colspan="4">First</td>
+ </tr>
+ <colgroup>
+ <col width="35px">
+ <col width="65px">
+ <col width="100px">
Julien - ping for review 2013/10/23 17:04:52 These should be indented to match the rest of the
+ </colgroup>
+ <tr >
+ <td data-expected-width="35">Col-1</td>
+ <td data-expected-width="65">Col-2</td>
+ <td data-expected-width="100">Col-3</td>
+ <td>Col-4</td>
+ </tr>
+ </table>
+</html>

Powered by Google App Engine
This is Rietveld 408576698