blob: 6a26b8db3dc664c0d00084cdc2e80fa556da62c4 [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>