Feature #18518
closedcss parsing issue: classes with element context selectors are not honoured inside other context selectors
0%
Description
Hi Stan,
the css parser has a nasty little flaw. If I declare a tag-class with a context selector in front of it, the class is not recognized. Example:
.tb-zebra-rows tr.odd {foo:bar}
That means I need to define the class extra without a context selector again without any value:
tr.odd {}
Prosit, Uschi
(issue imported from #M7963)
Files
Updated by Mikkel Ricky about 16 years ago
Patch for resolving this bug will be uploaded shortly.
The patch fixes "BlockStyle.parseSelectorText" such that ALL classes in a selector rule will be handled. The selector
.content table.fullwidth thead th.number
will result in three classes being available: "content" (for all elements), "fullwidth" (for table), and "number" (for th).
Updated by Mikkel Ricky almost 16 years ago
The previously uploaded patch missed fixing the parsing problem in "TextStyle.parseSelectorText", and a new patch will be uploaded shortly.
Updated by Stanislas Rolland almost 16 years ago
Thanks for the patch Mikkel. I will test it. I was indeed going to comment that something similar would be needed for TextStyle.
I am afraid Uschi may not have time to test this.
Updated by Stanislas Rolland almost 16 years ago
Committed to SVN TYPO3core trunk (revision 4557).