Bug 945105 patch 4: Add reftest. r=heycam

I confirmed that the test fails as expected without the patch, and
passes with the patch.
This commit is contained in:
Cameron McCormack ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E) 2014-01-19 11:04:57 -08:00
parent 5b9d1c52c2
commit 5eb40de2bc
3 changed files with 19 additions and 0 deletions

View File

@ -31,3 +31,5 @@ load stress-10.html # crash test
== 403177-1.html 403177-1-ref.html
== 469227-2.html 469227-2-ref.html
== 469227-3.html 469227-3-ref.html
== restyle-inside-first-line.html restyle-inside-first-line-ref.html

View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<title>Test for bug 945105: direct restyling of element inside of a ::first-line that extends to the next line</title>
<style>
body { background-color: white; color: black; width: 400px; height: 400px; }
</style>
<div style="width: 0"><span style="color: purple">This</span> <span>is some text</span></div>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<title>Test for bug 945105: direct restyling of element inside of a ::first-line that extends to the next line</title>
<style>
body { background-color: white; color: black; width: 400px; height: 400px; }
div::first-line { color: purple; }
</style>
<div style="width: 0"><span id="x" style="visibility: hidden">This is some text</span></div>
<script>
document.body.firstChild.offsetWidth;
document.getElementById("x").style.visibility = "visible";
</script>