2008-07-16 01:43:39 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
|
|
<title>Test soft hyphen in rtl text</title>
|
|
|
|
<style>
|
2008-11-25 13:27:53 -08:00
|
|
|
div { width: -moz-min-content; position: relative; }
|
|
|
|
|
|
|
|
/*prevent the soft hyphens from contributing to the minimum content width*/
|
|
|
|
div > p:nth-child(2) {
|
|
|
|
position: absolute;
|
|
|
|
top: auto;
|
|
|
|
right: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2008-07-16 01:43:39 -07:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body dir="rtl">
|
2008-11-25 13:27:53 -08:00
|
|
|
<div>
|
|
|
|
<!-- add a first paragraph with no soft hyphens to set minimum content width -->
|
|
|
|
<p>אבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכלמנסעפצקרשתאבגדהוזחטיכל</p>
|
2008-07-16 01:43:39 -07:00
|
|
|
<p>אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת­אבגדהוזחטיכלמנסעפצקרשת</p>
|
|
|
|
</p>
|
2008-11-25 13:27:53 -08:00
|
|
|
</div>
|
2008-07-16 01:43:39 -07:00
|
|
|
</body>
|
2008-08-13 00:04:49 -07:00
|
|
|
</html>
|