[wp-trac] [WordPress Trac] #63182: Issues with Color & Typography Settings

WordPress Trac noreply at wordpress.org
Thu Mar 27 09:33:27 UTC 2025


#63182: Issues with Color & Typography Settings
--------------------------+------------------------
 Reporter:  ketanniruke   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.8
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui, tests
--------------------------+------------------------

Comment (by Mamaduka):

 The editor's unit controls rarely support value conversion on unit change,
 so this isn't a regression or a bug.

 The main reason for avoiding conversion is that it's challenging to do
 correctly. Let's take a simple example: PX to REM. The standard formula is
 `pxValue / 16 = REMValue`. Here, we already had to assume that the root
 size is `16`, which can be incorrect based on user setup.

 It gets more challenging when you consider fixed to relative value
 conversions. How do you convert `100px` into a percentage when the code
 doesn't know what `%` is referring to?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63182#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list