https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 5b2846cb5fe342c01a826c893482c7e50c41b072 authored by moz-wptsync-bot on 15 March 2018, 23:08:40 UTC
Port EventSource in Web Workers to WorkerRef,
Tip revision: 5b2846c
transform-abspos-003.html
<!DOCTYPE html>
<html>
  <head>
    <title>CSS Test (Transforms): Containing Block for Fixed Positioning (right/bottom offsets)</title>
    <link rel="author" title="Keith Schwarz" href="mailto:keith@keithschwarz.com">
    <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
    <meta name="assert" content='"In the HTML namespace, any value other than
    &apos;none&apos; for the transform results in the creation of . . . a
    containing block. The object acts as a containing block for fixed
    positioned descendants."  This means fixed-position elements need to be
    rooted at a transformed ancestor, rather than the viewport.  (This test
    differs from the previous in that it uses right/bottom properties for
    positioning instead of left/top.)'>
    <link rel="match" href="transform-abspos-ref.html">
    <style>
      body > div {
        width: 100px;
        height: 200px;
        transform: translate(50px, 50px);
        background: gold;
      }
      body > div > div {
        width: 200px;
        height: 100px;
        position: fixed;
        right: -150px;
        bottom: 0;
        background: navy;
        color: gold;
      }
    </style>
  </head>
  <body>
    <div>
      A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
      <div>
        0 1 2 3 4 5 6 7 8 9
      </div>
    </div>
  </body>
</html>
back to top