I have two DOM elements that exist on their own composite layers because of this CSS rule:
.element-one,
.element-two {
will-change: transform;
transform: translateZ(0); // Fallback
}
Now, I can inspect these layers using Chrome dev tool's Show layer borders option.
All great! And this is what I see

I am familiar with the orange border color and it means the element exists on its own composite layer. But what does the green color indicate?
All dev tool documentation seem to be outdated.
The Chromium source's debug_colors.cc details the definitions.
Basically there are 2 types of things enabled with Show layers borders is on.
Found the answer in the source code
https://code.google.com/p/chromium/codesearch#chromium/src/cc/debug/debug_colors.cc&q=debug%20borders&sq=package:chromium
via
http://www.chromium.org/developers/design-documents/gpu-accelerated-compositing-in-chrome#TOC-Appendix-E:-Debugging-composited-layers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With