[wp-trac] [WordPress Trac] #52763: Relative CSS units used in front-end, absolute in block editor

WordPress Trac noreply at wordpress.org
Wed Mar 10 14:17:47 UTC 2021


#52763: Relative CSS units used in front-end, absolute in block editor
-----------------------------+-----------------------------
 Reporter:  andrejcremoznik  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Editor           |    Version:  5.6.2
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 `.has-large-font-size` and `.has-small-font-size` are core CSS classes. On
 front-end, the `font-size` uses `em`-s while in the editor, the units are
 in `px`.

 If the cascaded `font-size` is `16px`, then it's not a problem but
 anything else obviously breaks everything if your goal is to visually
 match front-end and editor.

 All editor's sizes should use relative units and the editor should have an
 option for devs to provide the base size.

 There are probably other instances of this. If I find them I'll add them
 to the bug report.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52763>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list