Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/table/change-row-border-width.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/table/change-row-border-width.html b/third_party/WebKit/LayoutTests/fast/table/change-row-border-width.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8b7f71706845e742fbd7414fef33d984a0f3e60e |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/table/change-row-border-width.html |
| @@ -0,0 +1,26 @@ |
| +<!doctype html> |
| +<style> |
| + td { |
| + width: 50px; |
| + height: 50px; |
| + padding: 0px; |
| + } |
| +</style> |
| +<script src="../../resources/check-layout.js"></script> |
| +<script type="text/javascript"> |
| + window.testRunner && window.testRunner.waitUntilDone(); |
| + window.addEventListener("load", changeBorderWidthAndCheck); |
| + function changeBorderWidthAndCheck() { |
| + requestAnimationFrame(function() { |
| + document.getElementById("row").style.borderWidth = "4px"; |
| + checkLayout("table"); |
| + window.testRunner && window.testRunner.notifyDone(); |
|
mstensho (USE GERRIT)
2016/05/09 08:41:53
I wonder if this could be simplified if you instea
dgrogan
2016/05/16 23:34:16
Beautiful. Done.
|
| + }); |
| + } |
| +</script> |
| +There should be a square with a 4px blue border. |
| +<table style="border-collapse:collapse" data-expected-width=58> |
|
mstensho (USE GERRIT)
2016/05/09 08:41:53
Add data-expected-height too?
dgrogan
2016/05/16 23:34:16
Done.
|
| + <tr style="border:18px solid lightblue" id="row"> |
| + <td /> |
| + </tr> |
| +</table> |