Browse Source

Images: fix block-editor borders — img{border:0} reset zeroed border-style 🖼️

windhamdavid 5 hours ago
parent
commit
6b78c9ee57
2 changed files with 8 additions and 0 deletions
  1. 8 0
      style.css
  2. 0 0
      v4-style.min.css

+ 8 - 0
style.css

@@ -2210,6 +2210,14 @@ li.comment.thread-odd {
 	border: 10px solid #f1f1f1;
 	margin-bottom: 0;
 }
+
+/* Block-editor image borders: the global `img{border:0}` reset zeroes border-style,
+   which defeats WordPress's low-specificity `:where()` border-style:solid rule. Restore
+   it for images that carry an inline border width so editor-applied borders render. */
+img[style*="border-width"] {
+  border-style: solid;
+}
+
 .category-gallery .gallery-thumb {
 	float: left;
 	margin-right: 20px;

File diff suppressed because it is too large
+ 0 - 0
v4-style.min.css


Some files were not shown because too many files changed in this diff