-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[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
Description
Description
When rich text has a format and when that format receives focus, then it's given a background with the current computed text color at 20% opacity, how ever the CSS for it is not always valid.
Step-by-step reproduction instructions
- Open https://playground.wordpress.net/?url=%2Fwp-admin%2Fsite-editor.php
- Click the canvas
- Make something bold
- The bold text has a background when focused:
- Open Styles from top right corner:
- Add Additional CSS:
- Add CSS:
body {
color: oklch(62% 0.2577 29.23);
}
- Focused format no longer has a background color:
The CSS applied to the rich text boundary is invalid:
This would be a valid value:
background-color: color-mix(in oklab, oklch(0.62 0.2577 29.23) 20%, transparent);
The intended result with valid CSS would look like this:
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
Please confirm which theme type you used for testing.
- Block
- Classic
- Not sure
- Hybrid (e.g. classic with theme.json)
R1shabh-Gupta and Mayank-Tripathi32
Metadata
Metadata
Assignees
Labels
[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