1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/first-line/restyle-inside-first-line.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +<!DOCTYPE html> 1.5 +<title>Test for bug 945105: direct restyling of element inside of a ::first-line that extends to the next line</title> 1.6 +<style> 1.7 +body { background-color: white; color: black; width: 400px; height: 400px; } 1.8 +div::first-line { color: purple; } 1.9 +</style> 1.10 +<div style="width: 0"><span id="x" style="visibility: hidden">This is some text</span></div> 1.11 +<script> 1.12 +document.body.firstChild.offsetWidth; 1.13 +document.getElementById("x").style.visibility = "visible"; 1.14 +</script>