Chromium Code Reviews| Index: LayoutTests/fast/css/handling-calc-on-table-as-auto.html |
| diff --git a/LayoutTests/fast/css/handling-calc-on-table-as-auto.html b/LayoutTests/fast/css/handling-calc-on-table-as-auto.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..68a860d9e1eb0cb1260e0720ffcdd1468af9d32a |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/handling-calc-on-table-as-auto.html |
| @@ -0,0 +1,31 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<script src="../../resources/check-layout.js"></script> |
| +<script> |
| +function test() |
| +{ |
| + checkLayout('td'); |
|
Julien - ping for review
2014/06/24 18:57:34
AFAICT you can just say checkLayout("td, table")
|
| + checkLayout('table'); |
| +} |
| +</script> |
| +</head> |
| +<body onload="test()"> |
| +<p>Test for handling calc() values on table elements as if they were Auto. Check crbug.com/350852 for details.</p> |
| +<table cellpadding="0" cellspacing="0" data-expected-width="132" data-expexted-height="100"> |
|
Julien - ping for review
2014/06/24 18:57:34
width = 132px is wrong. If you follow the CSS comp
|
| + <tr> |
| + <td colspan="5" style="width: calc(100% + 100px);" data-expected-width="100" data-expected-height="100"> |
| + <div style="height: 100px; width: 100px"/> |
| + </td> |
| + </tr> |
| +</table> |
| + |
| +<table cellpadding="0" cellspacing="0" style="table-layout:fixed;" data-expected-width="132" data-expexted-height="100"> |
| + <tr> |
| + <td colspan="5" style="width: calc(100% + 100px);" data-expected-width="100" data-expected-height="100"> |
| + <div style="height: 100px; width: 100px"/> |
| + </td> |
| + </tr> |
| +</table> |
| +</body> |
| +</html> |