diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-overflow/reference')
8 files changed, 234 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-overflow/reference/line-clamp-021-ref.html b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-021-ref.html new file mode 100644 index 0000000000..d794c76e3c --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-021-ref.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Reference</title> +<style> +#scrollContainer { + overflow: scroll; + font: 16px / 32px serif; + height: 3lh; + border: 1px solid black; +} +.clamp { + padding: 4px; + background-color: yellow; +} +.pre { + white-space: pre; +} +</style> + +<div id="scrollContainer"> + + <div class="clamp"> + <div class="pre">Line 1 +Line 2 +Line 3 +Line 4…</div> + </div> + +</div> + +<script> + window.addEventListener("load", () => { + const scrollContainer = document.getElementById("scrollContainer"); + scrollContainer.scrollTop = scrollContainer.scrollHeight; + }); +</script> diff --git a/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-abspos-011-ref.html b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-abspos-011-ref.html new file mode 100644 index 0000000000..f08b0270e8 --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-abspos-011-ref.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Reference</title> +<style> +#scrollContainer { + overflow: scroll; + position: relative; + font: 16px / 32px serif; + height: 4lh; + border: 1px solid black; +} +.clamp { + padding: 0 4px; + white-space: pre; + background-color: yellow; +} +.abspos { + position: absolute; + top: 4.5lh; + right: 0; + width: 50px; + height: 50px; + margin: 4px; + background-color: skyblue; +} +</style> + +<div id="scrollContainer"> +<div class="clamp">Line 1 +Line 2 +Line 3 +Line 4…<div class="abspos"></div></div> + +<script> + window.addEventListener("load", () => { + const scrollContainer = document.getElementById("scrollContainer"); + scrollContainer.scrollTop = scrollContainer.scrollHeight; + }); +</script> diff --git a/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-001-ref.html b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-001-ref.html new file mode 100644 index 0000000000..bcd70aa930 --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-001-ref.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Reference</title> +<style> +.clamp { + font: 16px / 32px serif; + padding: 0 4px; + white-space: pre; + background-color: yellow; +} +.float { + float: left; + width: 50px; + height: 50px; + margin: 4px; + background-color: skyblue; +} +</style> +<div class="clamp"><div class="float"></div>Line 1 +Line 2 +Line 3 +Line 4…</div> diff --git a/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-005-ref.html b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-005-ref.html new file mode 100644 index 0000000000..d20d6c53dd --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-005-ref.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Reference</title> +<style> +.clamp { + display: flow-root; + font: 16px / 32px serif; + padding: 0 4px; + white-space: pre; + background-color: yellow; +} +.float { + float: left; + width: 50px; + height: 50px; + margin: 4px; + background-color: skyblue; +} +</style> +<div class="clamp">Line 1 +Line 2 +Line 3 +Line 4…<div class="float"></div></div> diff --git a/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-006-ref.html b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-006-ref.html new file mode 100644 index 0000000000..9288c4e36f --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-006-ref.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Reference</title> +<style> +.clamp { + display: flow-root; + font: 16px / 32px serif; + padding: 0 4px; + background-color: yellow; +} +.float { + float: left; + width: 50px; + height: 75px; + margin: 4px; + background-color: skyblue; +} +.pre { + white-space: pre; +} +</style> +<div class="clamp"> +<div class="pre">Line 1 +Line 2 +Line 3</div> +<div class="float"></div> +<div class="pre">Line 4…</div> +</div> diff --git a/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-007-ref.html b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-007-ref.html new file mode 100644 index 0000000000..6d5390246b --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-007-ref.html @@ -0,0 +1,26 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Reference</title> +<style> +.clamp { + display: flow-root; + font: 16px / 32px serif; + padding: 0 4px; + white-space: pre; + background-color: yellow; +} +.float { + float: left; + margin: 4px; + white-space: pre; + background-color: skyblue; +} +</style> +<div class="clamp">Line 1 +Line 2 +Line 3 +Line 4…<div class="float">Line A +Line B +Line C +Line D +Line E</div></div> diff --git a/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-008-ref.html b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-008-ref.html new file mode 100644 index 0000000000..50b3d53900 --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-008-ref.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Reference</title> +<style> +.clamp { + display: flow-root; + font: 16px / 32px serif; + padding: 0 4px; + white-space: pre; + background-color: yellow; +} +.float { + float: left; + width: 50px; + height: 50px; + margin: 4px; + background-color: skyblue; +} +</style> +<div class="clamp">Line 1 +Line 2 +Line 3 +<div class="float"></div>Line 4…</div> diff --git a/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-010-ref.html b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-010-ref.html new file mode 100644 index 0000000000..12b8cdc441 --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/reference/line-clamp-with-floats-010-ref.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Reference</title> +<style> +#scrollContainer { + overflow: scroll; + font: 16px / 32px serif; + height: 4lh; + border: 1px solid black; +} +.clamp { + display: flow-root; + padding: 0 4px; + white-space: pre; + background-color: yellow; +} +.float { + float: left; + width: 50px; + height: 50px; + margin: 4px; + background-color: skyblue; +} +</style> + +<div id="scrollContainer"> +<div class="clamp">Line 1 +Line 2 +Line 3 +Line 4…<div class="float"></div></div> + +<script> + window.addEventListener("load", () => { + const scrollContainer = document.getElementById("scrollContainer"); + scrollContainer.scrollTop = scrollContainer.scrollHeight; + }); +</script> |