diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ref/basic.list | 1 | ||||
-rw-r--r-- | tests/ref/incremental_float_a.html | 36 | ||||
-rw-r--r-- | tests/ref/incremental_float_ref.html | 31 |
3 files changed, 68 insertions, 0 deletions
diff --git a/tests/ref/basic.list b/tests/ref/basic.list index c4d7c923c4c..b1480e1d856 100644 --- a/tests/ref/basic.list +++ b/tests/ref/basic.list @@ -184,3 +184,4 @@ fragment=top != ../html/acid2.html acid2_ref.html == linear_gradients_reverse_a.html linear_gradients_reverse_ref.html != linear_gradients_corners_a.html linear_gradients_corners_ref.html == linear_gradients_lengths_a.html linear_gradients_lengths_ref.html +== incremental_float_a.html incremental_float_ref.html diff --git a/tests/ref/incremental_float_a.html b/tests/ref/incremental_float_a.html new file mode 100644 index 00000000000..02e762b82e9 --- /dev/null +++ b/tests/ref/incremental_float_a.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> +<head> +<style> +nav.floaty { + float: left; +} +section { + clear: both; + position: relative; +} +</style> +</head> +<body> +<section> +<nav>This floats</nav> +<div>This doesn't</div> +</section> +<section> +<nav>This floats</nav> +<div style="overflow: hidden;">This is a block formatting context</div> +</section> +<section> +<nav>This floats</nav> +<div style="position: absolute; top: 0; left: 0; width: 100px; height: 100px;"> + This is abspos +</div> +</section> +<script> +var elements = document.getElementsByTagName('nav'); +for (var i = 0; i < elements.length; i++) + elements[i].setAttribute('class', 'floaty'); +</script> +</body> +</html> + diff --git a/tests/ref/incremental_float_ref.html b/tests/ref/incremental_float_ref.html new file mode 100644 index 00000000000..7b52f8a8f49 --- /dev/null +++ b/tests/ref/incremental_float_ref.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html> +<head> +<style> +nav { + float: left; +} +section { + clear: both; + position: relative; +} +</style> +</head> +<body> +<section> +<nav>This floats</nav> +<div>This doesn't</div> +</section> +<section> +<nav>This floats</nav> +<div style="overflow: hidden;">This is a block formatting context</div> +</section> +<section> +<nav>This floats</nav> +<div style="position: absolute; top: 0; left: 0; width: 100px; height: 100px;"> + This is abspos +</div> +</section> +</body> +</html> + |