Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ export const getNodesWithStyles = ( tree, blockSelectors ) => {
'typography',
'filter',
'outline',
'shadow',
].includes( key )
);

Expand Down
22 changes: 14 additions & 8 deletions packages/style-engine/src/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ describe( 'getCSSRules', () => {
style: 'dashed',
color: 'red',
},
shadow: '10px 10px red',
},
{
selector: '.some-selector',
Expand Down Expand Up @@ -308,45 +309,50 @@ describe( 'getCSSRules', () => {
value: '5px',
},
{
key: 'fontFamily',
selector: '.some-selector',
key: 'fontFamily',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From here on down, it also includes changes to unify the order of properties.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up 🙇

value: "'Helvetica Neue',sans-serif",
},
{
key: 'fontSize',
selector: '.some-selector',
key: 'fontSize',
value: '2.2rem',
},
{
key: 'fontStyle',
selector: '.some-selector',
key: 'fontStyle',
value: 'italic',
},
{
key: 'fontWeight',
selector: '.some-selector',
key: 'fontWeight',
value: '800',
},
{
key: 'letterSpacing',
selector: '.some-selector',
key: 'letterSpacing',
value: '12px',
},
{
key: 'lineHeight',
selector: '.some-selector',
key: 'lineHeight',
value: '3.3',
},
{
key: 'textDecoration',
selector: '.some-selector',
key: 'textDecoration',
value: 'line-through',
},
{
key: 'textTransform',
selector: '.some-selector',
key: 'textTransform',
value: 'uppercase',
},
{
selector: '.some-selector',
key: 'boxShadow',
value: '10px 10px red',
},
] );
} );

Expand Down