Skip to content

possible CSS mistake - #pql and #rgbwrap div not hidden by default #5029

@softhack007

Description

@softhack007

WLED/wled00/data/index.css

Lines 691 to 696 in b60313e

/* wrapper divs hidden by default */
#liveview, #liveview2D, #roverstar, #pql
#rgbwrap, #swrap, #hwrap, #kwrap, #wwrap, #wbal, #qcs-w, #hexw,
.clear-icon, .edit-icon, .ptxt {
display: none;
}

I'm not at expert in CSS, but it could be that a comma is missing at the end of line 692?

Asked the rabbit and he explains is like this

When there is no comma between #pql and #rgbwrap, the parser treats that gap as a descendant combinator. The selector list effectively contains a compound selector "#pql #rgbwrap" (rgbwrap inside pql) instead of two separate selectors "#pql" and "#rgbwrap". That means #pql itself will NOT be matched/hidden unless #rgbwrap is a descendant of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs investigationThe bug has not yet been reproduced by me. Analysis or more details are needed.staleThis issue will be closed soon because of prolonged inactivity

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions