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

Unified Diff: LayoutTests/fast/table/table-cell-border-no-doctype.html

Issue 203473002: Should not render the table cell border if the <td> is empty. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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-cell-border-no-doctype.html
diff --git a/LayoutTests/fast/table/table-cell-border-no-doctype.html b/LayoutTests/fast/table/table-cell-border-no-doctype.html
new file mode 100644
index 0000000000000000000000000000000000000000..4bf7441ac0404c8a6917a6b5d712653b598d747b
--- /dev/null
+++ b/LayoutTests/fast/table/table-cell-border-no-doctype.html
@@ -0,0 +1,34 @@
+<html>
+ <head>
+ <style>
+ table {
+ border: 1px solid blue;
+ width: 200px;
+ height: 100px;
+ }
+ </style>
+ <script>
+ function runTest()
+ {
+ var tableCell = document.getElementById('noChild');
+ var text = document.createTextNode(" ");
+ tableCell.appendChild(text);
+ }
+ </script>
+ </head>
+ <body onload="runTest()">
+ <table>
+ <tr>
+ <td width="50%" style=" border: 1px solid red;background-color: yellow;"><p></p></td>
+ <td width="50%" style=" border: 1px solid red; "></td>
+ </tr>
+ </table>
+ </br>
+ <table>
+ <tr>
+ <td width="50%" style=" border: 1px solid red;background-color: yellow;"><p></p></td>
+ <td id="noChild" width="50%" style=" border: 1px solid red; "></td>
+ </tr>
+ </table>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698