layout/reftests/table-background/border-collapse-opacity-table-column-ref.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
     2 	"http://www.w3.org/TR/html4/strict.dtd">
     3 <html lang="en-US">
     4 <head>
     5 	<title>Table background tests</title>
     6 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     7 	<meta http-equiv="Content-Style-Type" content="text/css">
     8 	<style type="text/css">
    10 	html, body { margin: 0; padding: 0; border: 0; font-size: 16px; }
    11 	body { padding: 15px; }
    13 	.o { opacity: 0.5; }
    15 	/*
    16 	table { 
    17 		margin: 0px 3px 2px 4px;
    18 		border-width: 4px 2px 8px 6px;
    20 		height is 97px:
    21 		  (2px of border outside height)
    22 		  extra border width for top row: 0
    23 		  cell * 5: == 19px * 5 == 95px
    24 		    border-top: 2px;
    25 		    padding-top: 1px;
    26 		    height: 10px;
    27 		    padding-bottom: 4px;
    28 		    border-bottom: 2px;
    29 		  extra border width for top row: 2px
    30 		  (4px of border outside height)
    32 		width is 287px:
    33 		  (3px of border outside width)
    34 		  extra border width for left column: 2px
    35 		  cell * 5: == 57px * 5 == 285px
    36 		    border-left: 1px;
    37 		    padding-left: 3px;
    38 		    width: 50px;
    39 		    padding-right: 2px;
    40 		    border-right: 1px;
    41 		  (1px of border outside width)
    42     */
    44 	div { width: 57px; height: 97px; margin: 2px 121px 8px 123px; }
    45 	div.color { background-color: aqua; }
    47 	div.imagetl, div.imagebr {
    48 		background-image: url(repeatable-diagonal-gradient-with-ticks.png);
    49 	}
    51 	div.imagetl { background-position: 0 0; }
    52 	div.imagebr { background-position: 57px 97px; }
    54 	</style>
    55 </head>
    56 <body>
    58 <div class="color o"></div>
    59 <div class="imagetl o"></div>
    60 <div class="imagebr"></div>
    62 </body>
    63 </html>

mercurial