- Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathoverflow-wrap-min-content-size-009.html
35 lines (33 loc) · 1.39 KB
/
overflow-wrap-min-content-size-009.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<metacharset="utf-8">
<title>CSS Text Test: min-content sizing and white-space: pre-wrap</title>
<linkrel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com">
<linkrel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
<linkrel="help" href="https://drafts.csswg.org/css-text-3/#overflow-wrap-property">
<linkrel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
<linkrel="help" href="https://drafts.csswg.org/css-text-3/#propdef-white-space">
<linkrel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap">
<linkrel="match" href="reference/overflow-wrap-min-content-size-009-ref.html">
<metaname="assert" content="Using 'overflow-wrap:anywhere' doesn't prevent the tabs sequence to hang (inconditionally) , honoring 'white-space: pre-wrap' hence glyphs **are not** considered when calculating min-content intrinsic sizes.">
<linkrel="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;
overflow-wrap: anywhere
}
.ref {
position: absolute;
background: green;
color: transparent;
}
</style>
<p>Test passes if there is a green box below and no red.
<divclass="ref"><br><br>X</div>
<divclass="test">		<span>XX</span></div>