looks like there is a popular adblock filter that hides elements with the classname of Ad, we just came across this.
easy fix, just put in .Ad{zoom:1} to your gss file so that no class is renamed to Ad
A workaround for this particular issue is to patch the stylesheet compiler with knowledge of class names it should avoid:
diff --git a/src/com/google/common/css/MinimalSubstitutionMap.java b/src/com/google/common
index fb46c0a..d36972b 100644
--- a/src/com/google/common/css/MinimalSubstitutionMap.java
+++ b/src/com/google/common/css/MinimalSubstitutionMap.java
@@ -108,12 +108,26 @@ public class MinimalSubstitutionMap implements SubstitutionMap {
this.renamedCssClasses = Maps.newHashMap();
}
+ /**
+ * TODO: Make the list of excluded strings here settable via
+ * command-line. Implement exclusion checking for the other
+ * SubstitutionMap classes as appropriate.
+ *
+ * @param value candidate target value
+ * @return True if this value should be excluded.
+ */
+ private boolean excludedString(String value) {
+ return ("ad".equals(value) || "AD".equals(value) || "Ad".equals(value) || "aD".equa
+ }
+
/** {@inheritDoc} */
@Override
public String get(String key) {
String value = renamedCssClasses.get(key);
if (value == null) {
- value = toShortString(lastIndex++);
+ do {
+ value = toShortString(lastIndex++);
+ } while (excludedString(value));
renamedCssClasses.put(key, value);
}
return value;