| background-color: inherit; /* needed to dodge the matched properties cache */ |
| width: calc(100% - 10px); /* calc compares inequal with the same exact calc value */ |
| Test that calc values in transitions don't lead to a style resolution spin. |
| testRunner.waitUntilDone(); |
| document.body.offsetWidth; |
| const startStyleRecalcCount = window.internals ? internals.styleRecalcCount() : 0; |
| testdiv.classList.add('test'); |
| const styleRecalcCount = internals.styleRecalcCount() - startStyleRecalcCount; |
| if (styleRecalcCount <= 3) |
| log.innerHTML = `FAIL: styleRecalcCount: ${ internals.styleRecalcCount() - startStyleRecalcCount}`; |