Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce transform_inline_styles argument to style sanitizer #6311

Closed
wants to merge 1 commit into from

Conversation

westonruter
Copy link
Member

Summary

Fixes #6295

Checklist

  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@westonruter westonruter added this to the v2.1.3 milestone May 23, 2021
Comment on lines +59 to +60
const INLINE_STYLE_TOO_LONG = 'INLINE_STYLE_TOO_LONG';
const STYLESHEET_AND_INLINE_STYLE_TOO_LONG = 'STYLESHEET_AND_INLINE_STYLE_TOO_LONG';
Copy link
Member Author

Choose a reason for hiding this comment

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

These need error titles added to them.

@westonruter westonruter modified the milestones: v2.1.3, v2.2 May 23, 2021
@westonruter westonruter removed this from the v2.2 milestone Jun 18, 2021
@westonruter
Copy link
Member Author

Maybe later. It turns out that transforming inline styles to style rules can actually save bytes when there are duplicate inline styles. See GoogleForCreators/web-stories-wp#6783 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide ability to bypass conversion of inline style attributes and !important qualifiers for AMP-first CSS
1 participant