зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1560174 - Prevent xmlns warning for breakpoint SVGs r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D35362 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ff72acb0aa
Коммит
6dc75498cf
|
@ -23,7 +23,7 @@ import type {
|
|||
|
||||
const breakpointSvg = document.createElement("div");
|
||||
breakpointSvg.innerHTML =
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 15" width="60" height="15"><path d="M53.07.5H1.5c-.54 0-1 .46-1 1v12c0 .54.46 1 1 1h51.57c.58 0 1.15-.26 1.53-.7l4.7-6.3-4.7-6.3c-.38-.44-.95-.7-1.53-.7z"/></svg>';
|
||||
'<svg viewBox="0 0 60 15" width="60" height="15"><path d="M53.07.5H1.5c-.54 0-1 .46-1 1v12c0 .54.46 1 1 1h51.57c.58 0 1.15-.26 1.53-.7l4.7-6.3-4.7-6.3c-.38-.44-.95-.7-1.53-.7z"/></svg>';
|
||||
|
||||
type Props = {
|
||||
cx: ThreadContext,
|
||||
|
|
|
@ -30,7 +30,7 @@ type Props = {
|
|||
|
||||
const breakpointButton = document.createElement("button");
|
||||
breakpointButton.innerHTML =
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 13" width="11" height="13"><path d="M5.07.5H1.5c-.54 0-1 .46-1 1v10c0 .54.46 1 1 1h3.57c.58 0 1.15-.26 1.53-.7l3.7-5.3-3.7-5.3C6.22.76 5.65.5 5.07.5z"/></svg>';
|
||||
'<svg viewBox="0 0 11 13" width="11" height="13"><path d="M5.07.5H1.5c-.54 0-1 .46-1 1v10c0 .54.46 1 1 1h3.57c.58 0 1.15-.26 1.53-.7l3.7-5.3-3.7-5.3C6.22.76 5.65.5 5.07.5z"/></svg>';
|
||||
|
||||
function makeBookmark({ breakpoint }, { onClick, onContextMenu }) {
|
||||
const bp = breakpointButton.cloneNode(true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче