Revision fced01876b48e034b64d9dad6de14d1bdeba3cc0 authored by Daniel Cheng on 12 April 2018, 12:08:45 UTC, committed by Chromium WPT Sync on 12 April 2018, 12:08:45 UTC
Change-Id: I1e66f2cdc50be889b697b54401be6352607fa649
Reviewed-on: https://chromium-review.googlesource.com/1006528
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550152}
1 parent 19a42b9
Raw File
transform-origin-004.html
<!DOCTYPE html>
<html>
  <head>
    <title>CSS Test (Transforms): transform-origin percentages 2</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-origin-property">
    <meta name="assert" content='A transform-origin of 101px 50% must result
    in the same rendering as the default of 50% 50% in this case.  The content
    box is 200x100px, so with a 1px border, the border box is 202x102px.
    transform-origin is computed relative to the border box.  (Note: an
    implementation that incorrectly computes transform-origin percentages
    relative to the content box would fail this test by only a few pixels, so
    care is needed in checking that the test and reference renderings match
    exactly.)'>
    <link rel="match" href="transform-origin-ref-2.html">
    <style>
      div {
        width: 200px;
        height: 100px;
        border: 1px solid black;
        transform: rotate(45deg);
        transform-origin: 101px 50%;
      }
    </style>
  </head>
  <body>
    <div>
      Some text!
    </div>
  </body>
</html>
back to top