Styles: Elements and pseudo elements use different box sizing. #6513
Labels
[Priority] Low
Used to indicate that the issue at hand isn't a top priority to address and can be handled later
[Type] Bug
An existing feature does not function as intended
Milestone
Issue Overview
edit-post/assets/stylesheets/main.scss
sets the box-sizing property with this rule set.This causes elements to have
border-box
sizing while pseudo elements (::before, ::after
) use the browser defaultcontent-box
.Steps to Reproduce (for bugs)
See gif below.
editor-block-list__block-edit::before
to inspect styles. Box sizing will show content-box.editor-block-list__block-edit
to inspect styles. Box sizing will show border-box.Expected Behavior
A consistent sizing method would be preferable.
Current Behavior
Sizing method is inconsistent.
Possible Solution
Two possibilities
or
Either change will require visual regression testing.
Screenshots / Video
Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: