Commit 572d2181 authored by jan.koester's avatar jan.koester
Browse files

test

parent 214b4cc3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1242,6 +1242,14 @@ void libhtmlpp::CSSStyleSheet::collectApproximateMatches(
                         (key == "visibility" && value == "hidden")))
                        continue;

                    if (key == "width" &&
                        (std::find(classes.begin(), classes.end(), "status-dot") != classes.end() ||
                         std::find(classes.begin(), classes.end(), "appointment-badge") != classes.end())) {
                        fprintf(stderr, "[WDBG] class=%s width=%s important=%d sel=[%s] spec=(%d,%d,%d)\n",
                                cssClass.c_str(), value.c_str(), isImportant,
                                branch.trimmedSelector.c_str(),
                                branch.specificity[0], branch.specificity[1], branch.specificity[2]);
                    }
                    props[key] = value;
                    specOf[key] = branch.specificity;
                    if (isImportant) importantKeys.insert(key);