[wp-trac] [WordPress Trac] #46597: Grid properties stripped from style attribute after saving post
WordPress Trac
noreply at wordpress.org
Fri Mar 22 10:32:00 UTC 2019
#46597: Grid properties stripped from style attribute after saving post
--------------------------+---------------------
Reporter: ryelle | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.2
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by birgire):
I can reproduce this, via author user role, for:
{{{
<div style="grid-template-columns:9% auto">Testing</div>
}}}
I also noticed the same removal of {{{display: grid;}}}.
Out of curiosity I had a look at possible other grid CSS properties and
here's the list so far:
{{{
grid
grid-column
grid-row
grid-area
grid-gap
grid-column-gap
grid-row-gap
grid-template
grid-template-areas
grid-template-columns
grid-auto-columns
grid-auto-rows
grid-auto-flow
grid-column-start
grid-column-end
grid-row-start
grid-row-end
justify-self
justify-items
justify-content
align-self
align-items
align-content
place-self
place-content
}}}
I might have missed some?
These are unsupported in {{{safecss_filter_attr()}}}.
Useful References:
https://www.w3.org/TR/css-grid-1/
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout
https://css-tricks.com/snippets/css/complete-guide-grid/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46597#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list