You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SVG can be the root element, but I'm not sure you need :not(:root). Even if that is the root, I don't think that vertical-align: middle will cause something.
Is there any reason why we add :not(:root)? We can just leave that out and specificity problem is solved? Just add overflow: hidden to all svg? And as @ysds pointed out:
SVG can be the root element, but I'm not sure you need :not(:root). Even if that is the root, I don't think that vertical-align: middle will cause something.
@mdo Do you expect any usage that Bootstrap is used in SVG documents? If not, the :not(:root) could be remove. It is not necessary to verify and waste time.
Activity
mdo commentedon Jul 14, 2018
Ah, yes, the selector is too strong and overrides classes.
ysds commentedon Jul 18, 2018
Removing
:not(:root)andoverflow: hidden;is a solution?Because,
is for IE9, so we can remove it.
ref: necolas/normalize.css@004d58b#diff-04c6e90faac2675aa89e2176d2eec7d8L73
And...
SVG can be the root element, but I'm not sure you need
:not(:root). Even if that is the root, I don't think thatvertical-align: middlewill cause something.mdo commentedon Jul 18, 2018
Yup, I agree with that. Feel free to open a PR @ysds, or I can later this week. Hoping to do a 4.1.3 next week to fix some issues.
ysds commentedon Jul 18, 2018
@mdo sure. Which is preferred?
or
MartijnCuppens commentedon Jul 18, 2018
I would say option 1?
ysds commentedon Jul 20, 2018
I found @XhmikosR 's comment #26296 (comment) and https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7226597/.
Unfortunately, that bug still exists in IE11. I don't have a environment to test with IE10.
https://codepen.io/anon/pen/pZNaqN
Herst commentedon Jul 20, 2018
@ysds
It is not only for IE9, it is necessary for all IE versions.
ysds commentedon Jul 20, 2018
@Herst Looks like it :)
MartijnCuppens commentedon Jul 20, 2018
Is there any reason why we add
:not(:root)? We can just leave that out and specificity problem is solved? Just addoverflow: hiddento allsvg? And as @ysds pointed out:This demo works in IE10 and IE11: https://codepen.io/MartijnCuppens/pen/QBGoKd?editors=1100
ysds commentedon Jul 20, 2018
Yeah, I have the same doubt. I can not imagine the scenario where Bootstrap is used in SVG documents. like:
ref: https://www.w3.org/TR/SVG2/styling.html#LinkElement
or
@mdo Do you expect any usage that Bootstrap is used in SVG documents? If not, the
:not(:root)could be remove. It is not necessary to verify and waste time.mdo commentedon Jul 20, 2018
Definitely don't expect that usage :).
ysds commentedon Jul 20, 2018
@mdo thanks :) I’m going to update my PR.
Remove `:not(:root)` from the workaround for SVG overflow bug
Remove `:not(:root)` from the workaround for SVG overflow bug