diff --git a/layout/mathml/mathml.css b/layout/mathml/mathml.css index 7bebcefd132d..dcf15dc1d0c1 100644 --- a/layout/mathml/mathml.css +++ b/layout/mathml/mathml.css @@ -56,17 +56,12 @@ ms[rquote]:after { } /**************************************************************************/ -/* Links and focusable elements */ +/* Links */ /**************************************************************************/ :any-link { text-decoration: none !important; } -:focus-visible { - /* Don't specify the outline-color, we should always use initial value. */ - outline: 1px dotted; -} - /**************************************************************************/ /* attributes common to all tags */ /**************************************************************************/ diff --git a/layout/style/res/html.css b/layout/style/res/html.css index 55b2d7287f64..7ae64ff36c51 100644 --- a/layout/style/res/html.css +++ b/layout/style/res/html.css @@ -701,12 +701,6 @@ canvas { user-select: none; } -/* focusable content: anything w/ tabindex >=0 is focusable */ -:focus-visible { - /* Don't specify the outline-color, we should always use initial value. */ - outline: 1px dotted; -} - iframe:focus-visible, body:focus-visible, html:focus-visible { diff --git a/layout/style/res/ua.css b/layout/style/res/ua.css index c147a9491146..128d99738ccb 100644 --- a/layout/style/res/ua.css +++ b/layout/style/res/ua.css @@ -134,7 +134,7 @@ } /* https://drafts.csswg.org/css-lists-3/#ua-stylesheet */ -*|*::marker { +::marker { text-align: end; text-transform: none; unicode-bidi: isolate; @@ -146,21 +146,19 @@ * the same changes to svg.css. */ -/* Links */ +/* Links and focusable content */ -*|*:any-link { +:any-link { cursor: pointer; } -*|*:any-link:focus-visible { +:focus-visible { /* Don't specify the outline-color, we should always use initial value. */ - /* TODO(emilio): I think this is redundant, html.css does the same for all - * :focus-visible elements. */ outline: 1px dotted; } /* Inert subtrees */ -*|*:-moz-inert { +:-moz-inert { -moz-inert: inert; } diff --git a/layout/svg/svg.css b/layout/svg/svg.css index 3901ac2e69aa..af3a55343b1a 100644 --- a/layout/svg/svg.css +++ b/layout/svg/svg.css @@ -97,11 +97,6 @@ foreignObject { opacity: inherit; } -:focus-visible { - /* Don't specify the outline-color, we should always use initial value. */ - outline: 1px dotted; -} - /* Make SVG shapes unselectable to avoid triggering AccessibleCaret on tap. will be supported in bug 1238882. */ circle, ellipse, line, mesh, path, polygon, polyline, rect {