tor-browser

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

polar-anchor-center-002.html (990B)


      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: center;
     17 	      left: 50px;
     18 	      width: 50px;
     19 	      height: 50px;
     20 	      background-color: red;
     21 	    }
     22 	  </style>
     23 </head>
     24 <body>
     25 	<p>Test passes if the center of a red box is positioned at 50px far from the left edge of the containing block.<br>
     26 	The element is positioned using Cartesian coordinates and the anchor point is at its center.</p>
     27 	<div class="container">
     28 		<div class="item"></div>
     29 	</div>
     30 </body>
     31 </html>