Description
There is a new CSS rule in 7.0 - html :where([style*=border-color]) - which enforces border-style: solid;. Where a border-style and border-color are defined on an element with no explicit border-width, browsers interpret this and enforce a default border width on elements which have no border-width explicitly defined. This means that after updating, some elements now have a visible border in the default state where they didn't in WordPress 6.9. This breaks layout and visual styling.
Step-by-step reproduction instructions
- Add a border colour to an element but do not define a border style or border width.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
There is a new CSS rule in 7.0 -
html :where([style*=border-color])- which enforcesborder-style: solid;. Where aborder-styleandborder-colorare defined on an element with no explicitborder-width, browsers interpret this and enforce a default border width on elements which have no border-width explicitly defined. This means that after updating, some elements now have a visible border in the default state where they didn't in WordPress 6.9. This breaks layout and visual styling.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.