Skip to content
Merged
Changes from all commits
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
73 changes: 63 additions & 10 deletions packages/block-library/src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,38 +125,91 @@
html :where(.has-border-color) {
border-style: solid;
}
html :where([style*="border-color"]) {
// Use ^= and *=; selectors so custom properties like --my-border-color
// don't accidentally match. Only real declarations at the start of
// the style string or after a semicolon should trigger these rules.
html
:where(
[style^="border-color"],
[style*=";border-color"],
[style*="; border-color"]
) {
border-style: solid;
}
html :where([style*="border-top-color"]) {
html
:where(
[style^="border-top-color"],
[style*=";border-top-color"],
[style*="; border-top-color"]
) {
border-top-style: solid;
}
html :where([style*="border-right-color"]) {
html
:where(
[style^="border-right-color"],
[style*=";border-right-color"],
[style*="; border-right-color"]
) {
/*rtl:ignore*/
border-right-style: solid;
}
html :where([style*="border-bottom-color"]) {
html
:where(
[style^="border-bottom-color"],
[style*=";border-bottom-color"],
[style*="; border-bottom-color"]
) {
border-bottom-style: solid;
}
html :where([style*="border-left-color"]) {
html
:where(
[style^="border-left-color"],
[style*=";border-left-color"],
[style*="; border-left-color"]
) {
/*rtl:ignore*/
border-left-style: solid;
}

html :where([style*="border-width"]) {
html
:where(
[style^="border-width"],
[style*=";border-width"],
[style*="; border-width"]
) {
border-style: solid;
}
html :where([style*="border-top-width"]) {
html
:where(
[style^="border-top-width"],
[style*=";border-top-width"],
[style*="; border-top-width"]
) {
border-top-style: solid;
}
html :where([style*="border-right-width"]) {
html
:where(
[style^="border-right-width"],
[style*=";border-right-width"],
[style*="; border-right-width"]
) {
/*rtl:ignore*/
border-right-style: solid;
}
html :where([style*="border-bottom-width"]) {
html
:where(
[style^="border-bottom-width"],
[style*=";border-bottom-width"],
[style*="; border-bottom-width"]
) {
border-bottom-style: solid;
}
html :where([style*="border-left-width"]) {
html
:where(
[style^="border-left-width"],
[style*=";border-left-width"],
[style*="; border-left-width"]
) {
/*rtl:ignore*/
border-left-style: solid;
}
Expand Down
Loading