[wp-trac] [WordPress Trac] #48336: Global block editor image styles causing problems
WordPress Trac
noreply at wordpress.org
Fri Oct 18 01:54:32 UTC 2019
#48336: Global block editor image styles causing problems
--------------------------+------------------------------
Reporter: dennis_f | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: ui
--------------------------+------------------------------
Comment (by dennis_f):
Replying to [comment:4 joyously]:
> Your particular case is very rare, and relies on some nebulous default.
If it needs `max-width: none`, then it should specify that for that
particular case, because it is non-standard.
> The best case globally is the very rules you are complaining about.
`max-width: none` is the default browser behavior - we're not supposed to
repeat the browser default rules. I know very well that `max-width:100%`
is a general standard these days (and I do have it applied to my simple
content images), but I'm pretty sure that there are still many
sites/themes that are not up to date with the standards. Probably there
are also many sites that are not responsive yet.
This shouldn't be a game of overriding each other's rules and regardless
of how stardard or not my case is, my point is that it is not good
practice for one element (the editor) to be enforcing styles outside of
its scope. I know that the WordPress team cares about backwards
compatibility and I only opened this ticket because I believe that there
will be many more affected by this (it's not for my personal gain, it will
take me a couple of minutes to override this rule for my slider).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48336#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list