diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-text/word-break/word-break-min-content-007.html')
-rw-r--r-- | testing/web-platform/tests/css/css-text/word-break/word-break-min-content-007.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/word-break/word-break-min-content-007.html b/testing/web-platform/tests/css/css-text/word-break/word-break-min-content-007.html new file mode 100644 index 0000000000..7886b13d73 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/word-break/word-break-min-content-007.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>CSS Text Test: min-content sizing and white-space: pre-wrap</title> +<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com"> +<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> +<link rel="help" href="https://drafts.csswg.org/css-text-3/#word-break-property"> +<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-word"> +<link rel="help" href="https://drafts.csswg.org/css-text-3/#propdef-white-space"> +<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap"> +<link rel="match" href="../overflow-wrap/reference/overflow-wrap-min-content-size-009-ref.html"> +<meta name="assert" content="word-break: break-word should behave as overflow-wrap: anywhere, so breaking opportunities **are not** considered when calculating min-content intrinsic sizes."> +<link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> +<style> +div { + font: 20px/1 Ahem; +} +.test { + color: green; + background: red; + z-index: -1; + + width: min-content; + white-space: pre-wrap; + word-break: break-word; +} +.ref { + position: absolute; + background: green; + color: transparent; +} +</style> + +<p>Test passes if there is a green box below and no red. +<div class="ref"><br><br>X</div> +<div class="test">		<span>XX</span></div> |