From dc3803d353c0168f2e456c6073452f645bf65a51 Mon Sep 17 00:00:00 2001 From: "Muhamad @hafixo" <52647469+hafixo@users.noreply.github.com> Date: Sat, 6 Mar 2021 00:53:05 +0800 Subject: [PATCH] Revert "Changes to margin-block and margin-inline (#2859)" This reverts commit 4fdf7b2b5b8209d89af7254987e85c664c813b28. --- files/en-us/web/css/margin-block/index.html | 34 ++++++++------------ files/en-us/web/css/margin-inline/index.html | 34 ++++++++------------ 2 files changed, 26 insertions(+), 42 deletions(-) diff --git a/files/en-us/web/css/margin-block/index.html b/files/en-us/web/css/margin-block/index.html index 288f6d1563358ed..4e76630578160df 100644 --- a/files/en-us/web/css/margin-block/index.html +++ b/files/en-us/web/css/margin-block/index.html @@ -29,7 +29,7 @@ margin-block: unset; -
This property corresponds to the {{CSSxRef("margin-top")}} and {{CSSxRef("margin-bottom")}}, or the {{CSSxRef("margin-right")}} and {{CSSxRef("margin-left")}} properties, depending on the values defined for {{CSSxRef("writing-mode")}}, {{CSSxRef("direction")}}, and {{CSSxRef("text-orientation")}}.
+These values corresponds to the {{CSSxRef("margin-top")}} and {{CSSxRef("margin-bottom")}}, or {{CSSxRef("margin-right")}}, and {{CSSxRef("margin-left")}} property depending on the values defined for {{CSSxRef("writing-mode")}}, {{CSSxRef("direction")}}, and {{CSSxRef("text-orientation")}}.
<div> + <p class="exampleText">Example text</p> +</div> ++
div { background-color: yellow; width: 120px; - height: auto; - border: 1px solid green; -} - -p { - margin: 0; - margin-block: 20px 40px; - background-color: tan; + height: 120px; } -.verticalExample { +.exampleText { writing-mode: vertical-rl; + margin-block: 20px 40px; + background-color: #c8c800; }-
<div> - <p>Example text</p> -</div> -<div class="verticalExample"> - <p>Example text</p> -</div> --
{{EmbedLiveSample("Setting_block_start_and_end_margins", 140, 200)}}
+{{EmbedLiveSample("Setting_block_start_and_end_margins", 140, 140)}}
This property corresponds to the {{CSSxRef("margin-top")}} and {{CSSxRef("margin-bottom")}}, or the {{CSSxRef("margin-right")}} and {{CSSxRef("margin-left")}} properties, depending on the values defined for {{CSSxRef("writing-mode")}}, {{CSSxRef("direction")}}, and {{CSSxRef("text-orientation")}}.
+This property corresponds to the {{CSSxRef("margin-top")}} and {{CSSxRef("margin-bottom")}}, or {{CSSxRef("margin-right")}}, and {{CSSxRef("margin-left")}} properties, depending on the values defined for {{CSSxRef("writing-mode")}}, {{CSSxRef("direction")}}, and {{CSSxRef("text-orientation")}}.
<div> + <p class="exampleText">Example text</p> +</div> ++
div { background-color: yellow; width: 120px; - height: auto; - border: 1px solid green; -} - -p { - margin: 0; - margin-inline: 20px 40px; - background-color: tan; + height: 120px; } -.verticalExample { +.exampleText { writing-mode: vertical-rl; + margin-inline: 20px 40px; + background-color: #c8c800; }-
<div> - <p>Example text</p> -</div> -<div class="verticalExample"> - <p>Example text</p> -</div> --
{{EmbedLiveSample("Setting_inline_start_and_end_margins", 140, 240)}}
+{{EmbedLiveSample("Setting_inline_start_and_end_margins", 140, 140)}}