Transition (shorthand-property)

Chrome dev tools bug. Transition (shorthand-property) reveals transition-property with values defined in transition-property before it.

by Konstantin Rouda

HTML

<div class="elem">
</div>

CSS

.elem {
  width: 300px;
  height: 300px;
  box-sizing: border-box;
  background: cornflowerblue;
  transition-property: width, height, background-color;
  transition: background-color .7s .3s ease; /*should be defined as transition-property: background-color but it reveals transition-property: width, height, background-color in dev tools in Chrome*/
}

.elem:hover {
  width: 350px;
  height: 400px;
  background-color: firebrick;
}

JavaScript

/*
BUG IN CHROME
In transition (shorthand-property), when-expended in dev tools, transition-property should be the property which was defined in transition (shorthand-property), but it defined with the values from transition-property defined before it.

Note: In order to see this in action you should open dev-tools find element with class .elem and look at its expended transition property values.
*/