-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Missing validation message to custom CSS input #56082
Copy link
Copy link
Closed
Labels
[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")Related to the overarching Site Editor (formerly "full site editing")[Package] Block editor/packages/block-editor/packages/block-editor[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Metadata
Metadata
Assignees
Labels
[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")Related to the overarching Site Editor (formerly "full site editing")[Package] Block editor/packages/block-editor/packages/block-editor[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
This appears to be a regression in trunk introduced in #49521
The validation messages for custom CSS introduced in #47132 no longer work.
The validation relied on the 'internal' CSS parser that was removed in #49521 in favor of postCSS.
While I understand the benefit of switching to postCSS, I'm a little surprised such an impactful change has been merged without double checking all the internal usages of the block editor utility
transformStyles. For the future, I'd like to recommend to make such changes be reviewed by contributors who have a larger overview and knowledge of the editor features.Cc @youknowriad @zaguiini @jsnajdr @strarsis
Step-by-step reproduction instructions
body {background: red;}}.Uncaught CssSyntaxError: <css input>:1:1: Unclosed blockError while traversing the CSS: Error: undefined:1:22: missing '}'Screenshots from WordPress 6.4 (expected behavior):
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes