diff --git a/browser/base/content/highlighter.css b/browser/base/content/highlighter.css index f63c8da15bf..68d2f859a98 100644 --- a/browser/base/content/highlighter.css +++ b/browser/base/content/highlighter.css @@ -48,6 +48,7 @@ #highlighter-nodeinfobar-container { position: absolute; + max-width: 95%; } #highlighter-nodeinfobar-container:not([disable-transitions]) { @@ -60,15 +61,17 @@ display: block; white-space: nowrap; direction: ltr; + overflow: hidden; + text-overflow: ellipsis; } #highlighter-nodeinfobar-container[locked] > #highlighter-nodeinfobar { pointer-events: auto; } -#highlighter-nodeinfobar-id, -.highlighter-nodeinfobar-class, -#highlighter-nodeinfobar-tagname { +html|*#highlighter-nodeinfobar-id, +html|*#highlighter-nodeinfobar-classes, +html|*#highlighter-nodeinfobar-tagname { -moz-user-select: text; cursor: text; } @@ -89,10 +92,6 @@ visibility: hidden; } -#highlighter-nodeinfobar-id:empty { - display: none; -} - -#highlighter-nodeinfobar-tagname { +html|*#highlighter-nodeinfobar-tagname { text-transform: lowercase; } diff --git a/browser/devtools/highlighter/highlighter.jsm b/browser/devtools/highlighter/highlighter.jsm index 0dbf9da9020..1b3f8a77866 100644 --- a/browser/devtools/highlighter/highlighter.jsm +++ b/browser/devtools/highlighter/highlighter.jsm @@ -409,11 +409,11 @@ Highlighter.prototype = { * * * - * - *