layout/reftests/font-features/annotations.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/font-features/annotations.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +<title>Annotations test</title>
     1.8 +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     1.9 +
    1.10 +<style type="text/css">
    1.11 +
    1.12 +body {
    1.13 +  margin: 20px;
    1.14 +  font-size: 800%;
    1.15 +  font-family: Hiragino Maru Gothic ProN, Meiryo;
    1.16 +}
    1.17 +
    1.18 +/* for platforms without these fonts the default glyphs will show */
    1.19 +
    1.20 +@font-feature-values Hiragino Maru Gothic ProN {
    1.21 +  @annotation { circled: 1; }
    1.22 +  @annotation { black-circled: 4; }
    1.23 +  @annotation { black-box: 8; }
    1.24 +  @annotation { black-rounded-box: 10; }
    1.25 +}
    1.26 +
    1.27 +@font-feature-values Meiryo {
    1.28 +  @annotation { 
    1.29 +    circled: 4;
    1.30 +    black-circled: 5;
    1.31 +    black-box: 7;
    1.32 +    black-rounded-box: 9;
    1.33 +  }
    1.34 +}
    1.35 +
    1.36 +#test1 {
    1.37 +  font-variant-alternates: annotation(circled);
    1.38 +}
    1.39 +
    1.40 +#test2 {
    1.41 +  font-variant-alternates: annotation(black-circled);
    1.42 +}
    1.43 +
    1.44 +#test3 {
    1.45 +  font-variant-alternates: annotation(black-rounded-box);
    1.46 +}
    1.47 +
    1.48 +</style>
    1.49 +
    1.50 +</head>
    1.51 +<body>
    1.52 +<div><span id="test1">1</span> <span id="test2">2</span> <span id="test3">3</span></div>
    1.53 +</body>
    1.54 +</html>
    1.55 \ No newline at end of file

mercurial