auto-margins-003-print.html (3127B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <link rel="help" href="https://drafts.csswg.org/css-page-3/#margin-dimension"> 4 <meta name="assert" content="Auto margins adjacent to the page area should never become negative."> 5 <link rel="match" href="auto-margins-003-print-ref.html"> 6 <style> 7 @page { 8 margin: 100px; 9 size: 500px 400px; 10 border: solid blue; 11 @top-left-corner { 12 border: solid; 13 width: 25px; 14 height: 25px; 15 margin: auto; 16 margin-top: 90px; 17 margin-left: 90px; 18 content: ""; 19 } 20 @top-left { 21 border: solid; 22 width: 25px; 23 height: 25px; 24 margin: auto; 25 margin-top: 90px; 26 content: ""; 27 } 28 @top-center { 29 border: solid; 30 width: 25px; 31 height: 25px; 32 margin: auto; 33 margin-top: 90px; 34 content: ""; 35 } 36 @top-right { 37 border: solid; 38 width: 25px; 39 height: 25px; 40 margin: auto; 41 margin-top: 90px; 42 content: ""; 43 } 44 @top-right-corner { 45 border: solid; 46 width: 25px; 47 height: 25px; 48 margin: auto; 49 margin-top: 90px; 50 margin-right: 90px; 51 content: ""; 52 } 53 @right-top { 54 border: solid; 55 width: 25px; 56 height: 25px; 57 margin: auto; 58 margin-right: 90px; 59 content: ""; 60 } 61 @right-middle { 62 border: solid; 63 width: 25px; 64 height: 25px; 65 margin: auto; 66 margin-right: 90px; 67 content: ""; 68 } 69 @right-bottom { 70 border: solid; 71 width: 25px; 72 height: 25px; 73 margin: auto; 74 margin-right: 90px; 75 content: ""; 76 } 77 @bottom-right-corner { 78 border: solid; 79 width: 25px; 80 height: 25px; 81 margin: auto; 82 margin-right: 90px; 83 margin-bottom: 90px; 84 content: ""; 85 } 86 @bottom-right { 87 border: solid; 88 width: 25px; 89 height: 25px; 90 margin: auto; 91 margin-bottom: 90px; 92 content: ""; 93 } 94 @bottom-center { 95 border: solid; 96 width: 25px; 97 height: 25px; 98 margin: auto; 99 margin-bottom: 90px; 100 content: ""; 101 } 102 @bottom-left { 103 border: solid; 104 width: 25px; 105 height: 25px; 106 margin: auto; 107 margin-bottom: 90px; 108 content: ""; 109 } 110 @bottom-left-corner { 111 border: solid; 112 width: 25px; 113 height: 25px; 114 margin: auto; 115 margin-left: 90px; 116 margin-bottom: 90px; 117 content: ""; 118 } 119 @left-bottom { 120 border: solid; 121 width: 25px; 122 height: 25px; 123 margin: auto; 124 margin-left: 90px; 125 content: ""; 126 } 127 @left-middle { 128 border: solid; 129 width: 25px; 130 height: 25px; 131 margin: auto; 132 margin-left: 90px; 133 content: ""; 134 } 135 @left-top { 136 border: solid; 137 width: 25px; 138 height: 25px; 139 margin: auto; 140 margin-left: 90px; 141 content: ""; 142 } 143 } 144 </style> 145 There should be 16 margin boxes around this page area. They should all be 146 squares, and their borders should be flush with the blue border. They should not 147 overlap with the page area.