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
However, only the latter patch was merged as a quick migration to the problem. These variables still apply directly on the document body element of every single webpage, regardless the existence of Facebook pixels:
…which is really problematic for web designers, who need to actively ignore the good chunks of variables when debugging web pages. Limiting these CSS variables to FBC elements only would improve the situation a lot.
Expected behavior
CSS variables only apply to Facebook Container’s own elements.
Every time I look in devtools I get a little irritated by this - especially when cycling through my own variables and having to wade through these. Not the biggest deal but it should really be fixed.
Every time I look in devtools I get a little irritated by this - especially when cycling through my own variables and having to wade through these. Not the biggest deal but it should really be fixed.
More than a year since this comment, and nothing has happened. I actually disabled the Facebook container because of this; commenting here now so that I get notified and can re-enable it when a fix is deployed.
In version 2.3.3, an unexpected CSS variable pollution was rolled out to users. Two patches were proposed to address the situation, namely:
.fbc-container
, and--fbc-
.However, only the latter patch was merged as a quick migration to the problem. These variables still apply directly on the document
body
element of every single webpage, regardless the existence of Facebook pixels:…which is really problematic for web designers, who need to actively ignore the good chunks of variables when debugging web pages. Limiting these CSS variables to FBC elements only would improve the situation a lot.
Expected behavior
CSS variables only apply to Facebook Container’s own elements.
Possible solutions
#facebook
,.fbc-container
)Please let me know if we could whip up some quick PR for this. Thanks! :)
The text was updated successfully, but these errors were encountered: