Bug 1592196 - Port bug 1588367: Convert all relevant uses of float: right/left to logical properties. r=jorgk
authorRichard Marti <richard.marti@gmail.com>
Tue, 29 Oct 2019 07:44:40 +0100
changeset 37389 b8acb8a3531f20aede9430cddf5653bb1e6df576
parent 37388 a2c9e5e752b1cace9489be659bdfbddfb57598ea
child 37390 013567062ce386e4cd11c35b8c02e00d9d094b85
push id396
push userclokep@gmail.com
push dateMon, 06 Jan 2020 23:11:57 +0000
reviewersjorgk
bugs1592196, 1588367
Bug 1592196 - Port bug 1588367: Convert all relevant uses of float: right/left to logical properties. r=jorgk
mail/base/content/glodaFacetView.css
mail/base/content/multimessageview.css
mail/components/enterprisepolicies/content/aboutPolicies.css
mail/components/im/messages/mail/main.css
mail/components/im/messages/papersheets/main.css
mail/themes/shared/customizableui/panelUI.css
mail/themes/shared/mail/accountProvisioner.css
mail/themes/shared/mail/messageHeader.css
mail/themes/shared/mail/messenger.css
--- a/mail/base/content/glodaFacetView.css
+++ b/mail/base/content/glodaFacetView.css
@@ -547,29 +547,25 @@ html[dir="rtl"] .bar-link {
   border: 1px dotted lightgrey;
   padding: 1em 0;
 }
 
 .message-header {
   margin-bottom: 0.5em;
 }
 .message-meta {
-  float: right;
+  float: inline-end;
   padding-inline-start: 2em;
   text-align: end;
   max-width: 20em;
   max-height: 10em;
   overflow: hidden;
   color: GrayText;
 }
 
-html[dir="rtl"] .message-meta {
-  float: left;
-}
-
 .message-attachments {
   text-align: end;
   overflow: hidden;
 }
 
 .message-attachment {
   max-width: 20em;
   text-align: start;
@@ -667,30 +663,26 @@ html[dir="rtl"] .message-attachment-icon
   border-style: outset;
   border-width: 0.5px;
   text-shadow: 0 1px 0 rgba(238,238,236,0.4); /* Tango Alumninum 1 */
 }
 
 .show-more {
   display: none; /* $('.show-more').show() is run if there are results */
   -moz-appearance: button;
-  float: right;
+  float: inline-end;
   padding: 0.2em 1em;
   font-size: small;
   margin-top: 5px;
   margin-inline-end: 1em;
   margin-bottom: 2em;
   cursor: pointer;
   align-self: flex-end;
 }
 
-html[dir="rtl"] .show-more {
-  float: left;
-}
-
 div.loading,
 div.empty {
   margin: 0 auto;
   text-align: center;
 }
 
 span.loading,
 span.empty {
--- a/mail/base/content/multimessageview.css
+++ b/mail/base/content/multimessageview.css
@@ -85,17 +85,17 @@
   padding-bottom: 6px;
 }
 
 .unread .primary_header  {
   font-weight: bold;
 }
 
 .right {
-  float: right;
+  float: inline-end;
 }
 
 .count {
   white-space: nowrap;
   margin-inline-start: 1ch;
 }
 
 .tags {
--- a/mail/components/enterprisepolicies/content/aboutPolicies.css
+++ b/mail/components/enterprisepolicies/content/aboutPolicies.css
@@ -10,25 +10,20 @@ html {
 
 body {
   display: flex;
   align-items: stretch;
   height: 100%;
 }
 
 #sectionTitle {
-  float: left;
+  float: inline-start;
   padding-inline-start: 1rem;
 }
 
-#sectionTitle:dir(rtl) {
-  float: right;
-  padding-inline-end: 1rem;
-}
-
 /** Categories **/
 
 .category {
   cursor: pointer;
   /* Center category names */
   display: flex;
   align-items: center;
 }
--- a/mail/components/im/messages/mail/main.css
+++ b/mail/components/im/messages/mail/main.css
@@ -12,17 +12,17 @@
 }
 
 .message {
   clear: both;
 }
 
 .pseudo {
   font-weight: bold;
-  float: left;
+  float: inline-start;
   width: calc(15% - 3px);
   text-align: right;
   padding-bottom: 5px;
   display: block;
   text-overflow: ellipsis;
   white-space: nowrap;
 }
 
@@ -36,17 +36,17 @@
 
 .message:not(.action) > .next {
   visibility: hidden;
 }
 
 .date {
   font-style: normal;
   font-weight: normal;
-  float: right;
+  float: inline-end;
   color: GrayText;
 }
 
 .message > .ib-msg-txt,
 .event {
   display: block;
   margin-left: 15%;
   padding-bottom: 5px;
--- a/mail/components/im/messages/papersheets/main.css
+++ b/mail/components/im/messages/papersheets/main.css
@@ -54,17 +54,17 @@ span.message-style {
   display: block;
   float: none;
 }
 
 span.date {
   color: rgba(0, 0, 0, 0.4);
   font-size: smaller;
   text-align: right;
-  float: right;
+  float: inline-end;
   display: block;
 }
 
 span.date-next {
   opacity: 0.4;
   margin-top: -6px;
   -moz-transition-property: opacity;
   -moz-transition-duration: 0.3s;
--- a/mail/themes/shared/customizableui/panelUI.css
+++ b/mail/themes/shared/customizableui/panelUI.css
@@ -651,25 +651,25 @@ panelview .toolbarbutton-1,
 
 .subviewbutton > .menu-accel-container > .menu-iconic-accel,
 .subviewbutton > .menu-accel-container > .menu-accel {
   margin-inline-end: 0 !important; /* to override menu.css on Windows */
 }
 
 .subviewbutton[shortcut]::after {
   content: attr(shortcut);
-  float: right;
+  float: inline-end;
 }
 
 .PanelUI-subView .subviewbutton-nav::after {
   -moz-context-properties: fill, fill-opacity;
   content: url("chrome://messenger/skin/icons/back-12.svg");
   fill: currentColor;
   fill-opacity: 0.6;
-  float: right;
+  float: inline-end;
   transform: translateY(1px);
 }
 
 .PanelUI-subView .subviewbutton-nav:-moz-locale-dir(ltr)::after {
   transform: scaleX(-1) translateY(1px);
 }
 
 .subviewbutton[shortcut]::after,
@@ -686,17 +686,17 @@ panelview .toolbarbutton-1,
   content: url("chrome://browser/skin/history.svg");
 }
 
 .subviewbutton[type="highlight-bookmark"]::after,
 .subviewbutton[type="highlight-history"]::after {
   -moz-context-properties: fill, fill-opacity;
   fill: currentColor;
   fill-opacity: 0.4;
-  float: right;
+  float: inline-end;
   /* Centers the icon and resizes it to 12px square. */
   transform: translateY(2px) scaleX(.75);
 }
 
 .subviewbutton[checked="true"] {
   list-style-image: url(chrome://global/skin/icons/check.svg);
   -moz-context-properties: fill;
   fill: currentColor;
@@ -1024,17 +1024,17 @@ toolbaritem[overflowedItem=true],
 }
 
 .widget-overflow-list .subviewbutton-nav::after {
   margin-inline-start: 10px;
   -moz-context-properties: fill, fill-opacity;
   content: url(chrome://browser/skin/back-12.svg);
   fill: currentColor;
   fill-opacity: 0.6;
-  float: right;
+  float: inline-end;
 }
 
 toolbarpaletteitem[place="menu-panel"] > .subviewbutton-nav::after {
   opacity: 0.5;
 }
 
 .widget-overflow-list .toolbarbutton-1:not(.toolbarbutton-combined) > .toolbarbutton-text {
   text-align: start;
--- a/mail/themes/shared/mail/accountProvisioner.css
+++ b/mail/themes/shared/mail/accountProvisioner.css
@@ -465,17 +465,17 @@ input[type="submit"].search {
   margin-bottom: 10px;
   cursor: pointer;
   border: 1px solid #888a85;
   background: linear-gradient(to top, rgb(238,238,236) 16%, rgb(255,255,255) 76%);
   border-radius: 5px;
 }
 
 #success-compose img, #success-addons img, #success-signature img {
-  float: left;
+  float: inline-start;
   margin-right: 10px;
 }
 
 #search_engine_wrap img {
   vertical-align: middle;
   margin-right: 10px;
 }
 
--- a/mail/themes/shared/mail/messageHeader.css
+++ b/mail/themes/shared/mail/messageHeader.css
@@ -48,17 +48,17 @@
 
 #expandedHeadersTopBox {
   /* Use the HTML layout model to allow the message header toolbar to float to
      the right of the From field. */
   display: block;
 }
 
 #header-view-toolbox {
-  float: right;
+  float: inline-end;
   display: block;
 }
 
 /* ::::: expanded header pane ::::: */
 
 #expandedsubjectBox {
   font-weight: bold;
 }
@@ -328,12 +328,8 @@ mail-headerfield {
   -moz-user-select: text;
   word-wrap: break-word;
 }
 
 mail-headerfield:focus {
   outline: 1px dotted;
   outline-offset: -1px;
 }
-
-#header-view-toolbox:-moz-locale-dir(rtl) {
-  float: left;
-}
--- a/mail/themes/shared/mail/messenger.css
+++ b/mail/themes/shared/mail/messenger.css
@@ -457,17 +457,17 @@ toolbarpaletteitem toolbarbutton {
 .panelButton > .toolbarbutton-text {
   text-align: start;
   padding-inline-start: 6px;
   padding-inline-end: 6px;
 }
 
 .panelButton[prettykey]::after {
   content: attr(prettykey);
-  float: right;
+  float: inline-end;
   color: GrayText;
 }
 
 toolbarpaletteitem toolbarspacer,
 toolbarpaletteitem toolbarspring {
   -moz-window-dragging: no-drag;
 }