Closed tooolbox closed 4 years ago
Ah right thanks for catching this.
So 2 notes (and a bug fix to implement on my side).
before.css
dist stylesheet, the ReadiumCSS-night_mode.css
in an after.css
dist stylesheet so the namespace doesnāt apply for this selector ā hereās why there are different stylesheets;text/html
instead of application/xhtml+xml
as well.That said, escaping doesnāt work for XHTML so there should have been a namespace declaration in the after stylesheet + epub|type
and Iāll correct this ā but if you want to cover the āserved as html use caseā, Iād say both should be used.
Iāll make this correction later today directly in the develop
branch.
Okay so basically:
[ns|attr="value"], [ns\:attr="value"] {
// ...
}
Got it, not too hard.
There's a lot of discussion at https://github.com/readium/swift-toolkit/issues/139 so I'm not even sure if I'll proceed this way but good to know.
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:
But in ReadiumCSS-base I see namespace declarations, which are supposed to enable
[ns|attr="value"]
syntax:So...
|
or\:
? (I am targeting something in theepub
namespace, so it's declared, in case that's a question.)