New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples of selector= attr of <rendition> wrong? #1766
Comments
This would be helpful:
https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Selectors The spec calls them "groups of selectors": https://www.w3.org/TR/2018/CR-selectors-3-20180130/#grouping |
Here are the 5 cases. From <rendition xml:id="IT" scheme="css" selector="emph hi">font-style: italic;</rendition> Next 2 are from HD, should remain space: <rendition scheme="css" selector="front p">
font-size: 110%;
margin-top: 0.5em;
margin-bottom: 0.5em;
</rendition> <rendition scheme="css" selector="body p">
font-size: 100%;
margin-top: 0;
margin-bottom: 0;
</rendition> From <rendition xml:id="rend-it" scheme="css" selector="emph hi name title">font-style: italic;</rendition> From ST, should use a comma: <rendition xml:id="it" scheme="css" selector="foreign hi"> font-style: italic; </rendition> |
subgroup agrees that this is a no-brainer and thanks @sydb for his exemplary documentation |
For documentation purposes: it was |
Close 4fa73f2 |
The value of
@selector
is “a selector or series of selectors”. If@scheme
is (or is assumed to be) "CSS", how are the distinct selectors of a series separated from one another? Some examples show what look like a series of whitespace-separated element types, but in CSS separating two element types by a space means “descendant of”. E.g.:In CSS this means something akin to the XPath
emph//hi//name//title
. I bet the example wants to say “<emph>
or<hi>
or<name>
or<title>
”. Thus I do not think we can use whitespace as a way to separate a series of selectors. But in CSS this would be indicated with “emph, hi, name, title”, no?There are 5 cases of
@selector
that use (only) whitespace to separate element types. It is not clear to me just glancing at them which ones mean “descendant” and which mean “or” (and thus should be changed to comma).(BTW, thanks to @amclark42 for helping w/ this.)
The text was updated successfully, but these errors were encountered: