mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-13 03:21:41 +00:00
bug 769475 - reftest for italicized Arabic text. r=smontagu
This commit is contained in:
parent
fb06cb14f2
commit
418166bd2b
25
layout/reftests/font-matching/arial-arabic-ref.html
Normal file
25
layout/reftests/font-matching/arial-arabic-ref.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Bug 769475 - test for italicized Arabic script in Arial</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: arial, serif;
|
||||
font-size: 36px;
|
||||
line-height: 72px;
|
||||
}
|
||||
span {
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body lang="ar">
|
||||
<!-- the white span should have the same width whether it's italicized or not,
|
||||
-- as Arial does not have Arabic characters in the italic face but we should
|
||||
-- apply synthetic italic to the regular face, NOT fall back to a different
|
||||
-- family from prefs.
|
||||
-->
|
||||
<div>العربي <span>العربي</span> العربي</div>
|
||||
</body>
|
||||
</html>
|
26
layout/reftests/font-matching/arial-arabic.html
Normal file
26
layout/reftests/font-matching/arial-arabic.html
Normal file
@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Bug 769475 - test for italicized Arabic script in Arial</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: arial, serif;
|
||||
font-size: 36px;
|
||||
line-height: 72px;
|
||||
}
|
||||
span {
|
||||
font-style: italic;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body lang="ar">
|
||||
<!-- the white span should have the same width whether it's italicized or not,
|
||||
-- as Arial does not have Arabic characters in the italic face but we should
|
||||
-- apply synthetic italic to the regular face, NOT fall back to a different
|
||||
-- family from prefs.
|
||||
-->
|
||||
<div>العربي <span>العربي</span> العربي</div>
|
||||
</body>
|
||||
</html>
|
@ -81,3 +81,7 @@ HTTP(..) == font-stretch-1.html font-stretch-1-ref.html
|
||||
random-if(!(cocoaWidget||/^Windows\x20NT\x206\.1/.test(http.oscpu))) skip-if(gtk2Widget) != bold-system-fallback-1.html bold-system-fallback-1-notref.html
|
||||
# test 2 uses Chess symbols; expected to pass on Android
|
||||
random-if(!Android) skip-if(gtk2Widget) != bold-system-fallback-2.html bold-system-fallback-2-notref.html
|
||||
|
||||
# Bug 769475 - applying 'italic' to Arabic text in Arial should NOT change family or metrics.
|
||||
# Expected to pass on MacOSX and Windows; other platforms unknown, depending on font availability.
|
||||
random-if(!(cocoaWidget||winWidget)) == arial-arabic.html arial-arabic-ref.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user