зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1368240: Properly handle invalidation of eager pseudo-elements with the new setup. r=heycam
MozReview-Commit-ID: EkzDVhC3GPH
This commit is contained in:
Родитель
69e5feef9f
Коммит
807e7f9441
|
@ -17,3 +17,4 @@ fuzzy-if(OSX==1010,1,10) == quotes-001.xml quotes-001-ref.xml
|
|||
fuzzy-if(OSX==1010,1,10) == table-ignoring-whitespace-01.html table-ignoring-whitespace-01-ref.html
|
||||
fuzzy-if(OSX==1010,1,10) == table-parts-01.html table-parts-01-ref.html
|
||||
== before-style-sharing.html before-style-sharing-ref.html
|
||||
== transitive-style-invalidation.html transitive-style-invalidation-ref.html
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
.foo > div::before {
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: green;
|
||||
content: "";
|
||||
}
|
||||
</style>
|
||||
<div class="foo">
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
onload = function() {
|
||||
document.querySelector('.foo').className = 'foo bar';
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,22 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
.foo > div::before {
|
||||
display: block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: red;
|
||||
content: "";
|
||||
}
|
||||
.foo.bar > div::before {
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<div class="foo">
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
onload = function() {
|
||||
document.querySelector('.foo').className = 'foo bar';
|
||||
}
|
||||
</script>
|
Загрузка…
Ссылка в новой задаче