Hi Olga,
thank you. I’ve found the difference with your help
/wp-includes/css/dist/block-library/style.css
5.5.3:
.editor-styles-wrapper .has-small-font-size,
.has-small-font-size {
font-size: 13px; }
.editor-styles-wrapper .has-regular-font-size,
.editor-styles-wrapper .has-normal-font-size,
.has-regular-font-size,
.has-normal-font-size {
font-size: 16px; }
.editor-styles-wrapper .has-medium-font-size,
.has-medium-font-size {
font-size: 20px; }
.editor-styles-wrapper .has-large-font-size,
.has-large-font-size {
font-size: 36px; }
.editor-styles-wrapper .has-larger-font-size,
.editor-styles-wrapper .has-huge-font-size,
.has-larger-font-size,
.has-huge-font-size {
font-size: 42px; }
v. 5.6:
.has-small-font-size {
font-size: 0.8125em; }
.has-regular-font-size,
.has-normal-font-size {
font-size: 1em; }
.has-medium-font-size {
font-size: 1.25em; }
.has-large-font-size {
font-size: 2.25em; }
.has-larger-font-size,
.has-huge-font-size {
font-size: 2.625em; }
My questions
1) Is this transition from absolute to relative font sizes in the WordPress core correct of itself? Or should it be considered a bug / bad decision?
I think this will potentially affect hundreds of sites whose themes do not override these font sizes.
2) Should I now override the sizes of these fonts explicitly using theme’s css? What is the best practice?
Thank you