Feature #18518
closed
css parsing issue: classes with element context selectors are not honoured inside other context selectors
Added by Uschi Renziehausen over 16 years ago.
Updated about 6 years ago.
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
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).
The previously uploaded patch missed fixing the parsing problem in "TextStyle.parseSelectorText", and a new patch will be uploaded shortly.
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.
Committed to SVN TYPO3core trunk (revision 4557).
- Status changed from Resolved to Closed
Also available in: Atom
PDF