tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

polar-anchor-top-001.html (1035B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 	<title>CSS Test: Anchor of the element</title>
      5 	<link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" />
      6 	<link rel="help" href="https://www.w3.org/TR/motion-1/#polar-anchor-property">
      7 	<meta name="assert" content="Test checks that the representative point of the element specified with 'polar-anchor'.">
      8 	<style type="text/css">
      9 	    .container {
     10 	      width: 200px;
     11 	      height: 200px;
     12 	      border: medium solid black;
     13 	    }
     14 	    .item {
     15 	      position: absolute;
     16 	      polar-anchor: top;
     17 	      polar-distance: 0px;
     18 		  polar-angle: 90deg;
     19 	      width: 50px;
     20 	      height: 50px;
     21 	      background-color: red;
     22 	    }
     23 	  </style>
     24 </head>
     25 <body>
     26 	<p>Test passes if the center point of the red box's top edge is positioned at the center of the containing block.<br>
     27 	The element is positioned using polar coordinates and the anchor point is at the center of its top edge.</p>
     28 	<div class="container">
     29 		<div class="item"></div>
     30 	</div>
     31 </body>
     32 </html>