Chromium Code Reviews| Index: LayoutTests/fast/table/percent-widths-float.html |
| diff --git a/LayoutTests/fast/table/percent-widths-float.html b/LayoutTests/fast/table/percent-widths-float.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..03718ff4504eb2070d39b611f9db4d572a9ed534 |
| --- /dev/null |
| +++ b/LayoutTests/fast/table/percent-widths-float.html |
| @@ -0,0 +1,19 @@ |
| +<!DOCTYPE HTML> |
| +<style> |
| + table { border-collapse: collapse; width: 1000px;} |
| + #green { background-color: green; padding: 0; width: 1.5%;} |
| + #blue { background-color: blue; padding: 0; width: 0.5%;} |
| + #orange { background-color: orange; padding: 0; width: 10%; } |
| + div { height: 10px; } |
| +</style> |
| +<script src="../../resources/check-layout.js"></script> |
| +<table> |
| + <td id="green" data-expected-width=125><div></div></td> |
| + <td id="blue" data-expected-width=41><div></div></td> |
| + <td id="orange" data-expected-width=834><div></div></td> |
| +</table> |
| +<p> crbug.com/476370: Test cells get appropriate width when we use float percentage values. </p> |
|
mstensho (USE GERRIT)
2015/05/04 20:42:48
"float" as in "fractional", perhaps?
|
| +<div id="console"></div> |
| +<script> |
| + checkLayout('td', document.getElementById('console')); |
| +</script> |