blob: 2c6c275274ccf3c2d9ee0b37ee70d9ff5b71c19f [file] [log] [blame]
@font-face {
/* FeatureTest.ttf is a small font for testing OpenType features.
* It contains:
* - The black box glyph which is associated with 'W', 'e', 'b', 'K', 'i' and 't'.
* - A discretionary ligature glyph of 'WebKit'.
font-family: 'test';
src: url(resources/FeatureTest.ttf);
.dligOn {
font-family: 'test';
-webkit-font-feature-settings: 'dlig';
.dligOff {
font-family: 'test';
-webkit-font-feature-settings: 'dlig' 0;
.dligNone {
font-family: 'test';
if (window.testRunner)
function test() {
if (window.testRunner)
<body onload="setTimeout(test, 300)">
<p>Test for font-feature-settings property. The first word of the following three words should be displayed like "WebKit", while others should be displayed as black boxes.</p>
<div class="dligOn">WebKit</div>
<div class="dligOff">WebKit</div>
<div class="dligNone">WebKit</div>