Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
A low specificity rule to ensures that the default box-sizing: border…
…-box in the editor is reflected on the frontend.
  • Loading branch information
ramonjd committed Jan 12, 2022
commit bad8beaf18b8bc7ed6f60eeb5f717d8dd734b998
9 changes: 9 additions & 0 deletions packages/block-library/src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,12 @@ html :where(.has-border-color) {
html :where([style*="border-width"]) {
border-style: solid;
}

/**
* Ensures that the default box-sizing: border-box in the editor
* is reflected on the frontend.
* See: https://github.com/WordPress/gutenberg/pull/37818
*/
:where(*) {
box-sizing: border-box;
}