<link href='https://fonts.googleapis.com/css?family=Fira+Sans' rel='stylesheet' type='text/css'>

<p>Цей приклад показує як працює властивість <code>font-variant-ligatures</code>. Спробуйте вимкнути/ввімкнути перемикач, щоб змінити відображення літер нижче. Зверніть увагу, що властивість може не підтримуватися Вашим браузером.</p>

<div class="inputs">
  <input id="common-ligatures" checked name="font-variant-ligatures" type="radio"/>
  <label for="common-ligatures">common-ligatures</label>
  <message for="common-ligatures">Без задання. Використовуються лігатури.</message>
  
  <input id="no-common-ligatures" name="font-variant-ligatures" type="radio"/>
  <label for="no-common-ligatures">no-common-ligatures</label>
  <message for="no-common-ligatures">Лігатури не використовуються.</message>
</div>

<p id="message">Без задання. Використовуються лігатури.</p>

<hr>

<p id="block">fi</p>
* {
  box-sizing: border-box;
  padding: 0;
}

body {
  font-family: 'Fira Sans', sans-serif;
}

#block {
  font-size: 17em; 
  line-height: 1;
  margin-top: 0;
  text-align: center;
}

message {
  display: none;
}
var $message = $('#message');

$('.inputs').find('input').on('change', function() {
  
  var $messageText = $("message[for='"+$(this).attr('id')+"']")
  $message.text($messageText.text());
  
  $('#block').css('font-variant-ligatures', $(this).attr('id'));
  
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js