mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
5b9d1c52c2
commit
5eb40de2bc
@ -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
|
||||
|
@ -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>
|
11
layout/reftests/first-line/restyle-inside-first-line.html
Normal file
11
layout/reftests/first-line/restyle-inside-first-line.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user