Revision 821e3a0ec1d006772be7b2250706e063bfb15654 authored by nikhil on 09 February 2018, 06:43:24 UTC, committed by Chromium WPT Sync on 09 February 2018, 06:43:24 UTC
CSSTransformComponent should have default value for is2D.

New spec: https://drafts.css-houdini.org/css-typed-om-1/#dictdef-cssmatrixcomponentoptions

Bug: 807875
Change-Id: I4b6aaa0f1dba1dca00d6b6df3d8a1314a238e692
1 parent b0ff0ea
Raw File
first-paint-bg-color.html
<!DOCTYPE html>
<head>
<title>Performance Paint Timing Test: FP due to background color</title>
</head>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="main"></div>
</body>

<footer>
<script>
async_test(function (t) {
    document.body.style.backgroundColor = "#AA0000";

    function testPaintEntries() {
      const bufferedEntries = performance.getEntriesByType('paint');
      if (bufferedEntries.length < 1) {
        t.step_timeout(function() {
          testPaintEntries();
        }, 20);
        return;
      }
      t.step(function() {
        assert_equals(bufferedEntries.length, 1, "FP should fire for background color, not FCP");
        assert_equals(bufferedEntries[0].entryType, "paint");
        assert_equals(bufferedEntries[0].name, "first-paint");
        t.done();
      });
    }
    t.step(function() {
      testPaintEntries();
    })
}, "First paint fires due to background color. No FCP");
</script>
<footer>
</html>
back to top