mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
57789c06eb
Without this change, we can end up asserting in ComputeVariablesData and crashing in CSSVariableResolver::Resolve due to not finding any variable declarations on the rules we matched, when we have content like in the crashtest added here, i.e. variables inheriting into a pseudo like ::first-line and animations on the element inside the ::first-line. We could solve this alternatively by removing the assertion and making CSSVariableResolver::Resolve handle a null aDeclarations more gracefully, but since we can save the effort of recomputing the Variables struct in this case, we may as well. MozReview-Commit-ID: 6l06ZF3WGsy
19 lines
248 B
HTML
19 lines
248 B
HTML
<!doctype html>
|
|
<html>
|
|
<style>
|
|
div::first-line {
|
|
--bar: left;
|
|
}
|
|
span {
|
|
animation: var(--bar) 5s infinite alternate;
|
|
}
|
|
@keyframes left {
|
|
from {left: 0;}
|
|
to {left: 30px;}
|
|
}
|
|
</style>
|
|
<div>
|
|
<span>Crash</span>
|
|
</div>
|
|
</html>
|