gecko-dev/layout/reftests/first-letter/dynamic-5.html

16 строки
252 B
HTML

<!DOCTYPE html>
<style>
fieldset::first-letter {
color: red;
}
fieldset.f::first-letter {
color: green;
}
</style>
<fieldset>Text</fieldset>
<script>
window.onload = function() {
document.querySelector('fieldset').classList.add('f');
}
</script>