Skip to content

Namespace Selection #82

@tooolbox

Description

@tooolbox

I'm submitting a question.

Short description of the issue/suggestion:

I would like to know if there's a standard/blessed way in Readium CSS to select elements with a namespaced attribute.

In ReadiumCSS-night_mode.css I see this:

:root:--night-mode *[epub\:type~="titlepage"] img:only-child {
  -webkit-filter: invert(100%);
  filter: invert(100%);
}

But in ReadiumCSS-base I see namespace declarations, which are supposed to enable [ns|attr="value"] syntax:

@namespace url("http://www.w3.org/1999/xhtml");
@namespace epub url("http://www.idpf.org/2007/ops");
@namespace m url("http://www.w3.org/1998/Math/MathML/");
@namespace svg url("http://www.w3.org/2000/svg");

So... | or \: ? (I am targeting something in the epub namespace, so it's declared, in case that's a question.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions