url_previews: Post-process embed links for performant CSS.

This commit is contained in:
Karl Stolley
2025-04-28 13:09:37 -05:00
committed by Tim Abbott
parent 80f101016e
commit 142d1958a0
4 changed files with 25 additions and 1 deletions

View File

@@ -211,6 +211,7 @@ js_rules = RuleList(
"description": "Avoid using the `style=` attribute; we prefer styling in CSS files",
"exclude": {
"web/tests/compose_paste.test.cjs",
"web/tests/postprocess_content.test.cjs",
},
"good_lines": ["#my-style {color: blue;}", "const style =", 'some_style = "test"'],
"bad_lines": ['<p style="color: blue;">Foo</p>', 'style = "color: blue;"'],