Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions gap-analysis/tests/provisional/shaping-002.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: font-weight</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries for changes in font weight.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
.fontweight { font-weight: bold; }
</style>
</head>
<body>
<p class="instructions">Test passes if all Arabic characters join.</p>
<div class="test" lang="und-Arab">ع<span class="fontweight">ع</span>ع</div>
<div class="test" lang="ar">كل<span class="fontweight">م</span>ة</div>
<div class="test" lang="fa">کل<span class="fontweight">م</span>ه</div>

<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
30 changes: 30 additions & 0 deletions gap-analysis/tests/provisional/shaping-003.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: font-style</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries for changes in font style.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
.fontstyle { font-style: italic; }
</style>
</head>
<body>
<p class="instructions">Test passes if the three Arabic characters join.</p>
<div class="test" lang="ar">ع<span class="fontstyle">ع</span>ع</div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
32 changes: 32 additions & 0 deletions gap-analysis/tests/provisional/shaping-004.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: margin 0</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries when margin is set to 0.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
.margin { margin:0; }
</style>
</head>
<body>
<p class="instructions">Test passes if the three Arabic characters join.</p>
<div class="test" lang="und-Arab">ع<span class="margin">ع</span>ع</div>
<div class="test" lang="ar">كل<span class="margin">م</span>ة</div>
<div class="test" lang="fa">کل<span class="margin">م</span>ه</div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
31 changes: 31 additions & 0 deletions gap-analysis/tests/provisional/shaping-005.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: padding 0</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries when padding is set to 0.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
.padding { padding:0; }
</style>
</head>
<body>
<p class="instructions">Test passes if all Arabic characters join.</p>
<div class="test" lang="und-Arab">ع<span class="padding">ع</span>ع</div>
<div class="test" lang="ar">كل<span class="padding">م</span>ة</div>
<div class="test" lang="fa">کل<span class="padding">م</span>ه</div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
32 changes: 32 additions & 0 deletions gap-analysis/tests/provisional/shaping-007.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: font size 100%</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries when font-size is set to 100%.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
.fontsize { font-size:100%; }
</style>
</head>
<body>
<p class="instructions">Test passes if all Arabic characters join.</p>
<div class="test" lang="und-Arab">ع<span class="fontsize">ع</span>ع</div>
<div class="test" lang="ar">كل<span class="fontsize">م</span>ة</div>
<div class="test" lang="fa">کل<span class="fontsize">م</span>ه</div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
32 changes: 32 additions & 0 deletions gap-analysis/tests/provisional/shaping-008.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: font size 120%</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries for changes to font-size.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
.fontsizeplus { font-size:120%; }
</style>
</head>
<body>
<p class="instructions">Test passes if all Arabic characters join.</p>
<div class="test" lang="und-Arab">ع<span class="fontsizeplus">ع</span>ع</div>
<div class="test" lang="ar">كل<span class="fontsizeplus">م</span>ة</div>
<div class="test" lang="fa">کل<span class="fontsizeplus">م</span>ه</div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
31 changes: 31 additions & 0 deletions gap-analysis/tests/provisional/shaping-009.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: margin &gt; 0</title>
<meta name="assert" content="Shaping SHOULD be broken across inline box boundaries when marginis set to a non-zero value.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
.margin { margin: 0.5em; }
</style>
</head>
<body>
<p class="instructions">Test passes if all Arabic characters DON'T join and middle letter appears in medial form.</p>
<div class="test" lang="und-Arab">ع<span class="margin">ع</span>ع</div>
<div class="test" lang="ar">ع<span class="margin">ل</span>م</div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
31 changes: 31 additions & 0 deletions gap-analysis/tests/shaping-000.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: span</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries with no styling change.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
</style>
</head>
<body>
<p class="instructions">Test passes if the all Arabic characters join.</p>
<div class="test" lang="und-Arab">ع<span>ع</span>ع</div>
<div class="test" lang="ar">كل<span>م</span>ة</div>
<div class="test" lang="fa">کل<span>م</span>ه</div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
32 changes: 32 additions & 0 deletions gap-analysis/tests/shaping-001.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: colour</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries for changes to colour.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
.color { color:blue; }
</style>
</head>
<body>
<p class="instructions">Test passes if the all Arabic characters join.</p>
<div class="test" lang="und-Arab">ع<span class="color">ع</span>ع</div>
<div class="test" lang="ar">كل<span class="color">م</span>ة</div>
<div class="test" lang="fa">کل<span class="color">م</span>ه</div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
34 changes: 34 additions & 0 deletions gap-analysis/tests/shaping-006.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: border 0</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries when border is set to 0.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #02D7F6; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "csstest_noto"; }
/* the CSS above is not part of the test */
.margin { margin:0; }
.padding { padding:0; }
.border { border:10px dotted #02D7F6; }
</style>
</head>
<body>
<p class="instructions">Test passes if all Arabic characters join.</p>
<div class="test" lang="und-Arab">ع<span class="border">ع</span>ع</div>
<div class="test" lang="ar">كل<span class="border">م</span>ة</div>
<div class="test" lang="fa">کل<span class="border">م</span>ه</div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
33 changes: 33 additions & 0 deletions gap-analysis/tests/shaping-013.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<title>shaping: border 0</title>
<meta name="assert" content="Shaping should not be broken across inline box boundaries when border is set to 0.">
<link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
<link rel="author" title="Shervin Afshar" href="mailto:i@shervinafshar.name">
<link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
<meta name="flags" content="font" />
<style type="text/css">
@font-face {
font-family: 'csstest_noto';
src: url('../../fonts/NotoNaskhArabic-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.test { border: 1px solid #FFFFFF; margin: 20px; padding: 10px; width: 3em; font-size: 172px; font-family: "Nassim Arabic"; }
/* the CSS above is not part of the test */
.outline { text-shadow: 5px 0 0 #02D7F6; }
</style>
</head>
<body>
<p class="instructions">Test passes if all Arabic characters join.</p>
<div class="test" lang="und-Arab">ع<span class="outline">ع</span>ع</div>
<div class="test" lang="ar"><span class="outline">كلمة</span></div>
<div class="test" lang="fa"><span class="outline">کل<span>م</span>ه</span></div>
<div class="test" lang="fa"><span class="outline">کلمه</span></div>
<!-- Notes:
This test uses the Noto Naskh Arabic font to control variables related to font choice.
-->
</body>
</html>
Loading