caption-sibling-2-noref.html (546B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <!-- dbaron thinks the validity of this test is questionable, see 5 https://bugzilla.mozilla.org/show_bug.cgi?id=477462#c20 and #c21 --> 6 <style type="text/css"> 7 #table { 8 display: table; 9 width: 100px; 10 } 11 #caption1 { 12 display: block; 13 height: 20px; 14 background-color: red; 15 margin-bottom: 30px; 16 } 17 #caption3 { 18 display: block; 19 height: 20px; 20 background-color: green; 21 } 22 </style> 23 </head> 24 <body> 25 <div id="table"> 26 <div id="caption1"></div> 27 <div id="caption2"></div> 28 <div id="caption3"></div> 29 </div> 30 </body> 31 </html>