Opened 8 years ago

Last modified 8 years ago

#6331 confirmed Bug

Styles applied to all children elements

Reported by: b0b0 Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 3.4
Keywords: Cc:

Description (last modified by Tobiasz Cudnik)

paste this in the editor :

<ul>
	<li>
		line 1</li>
	<li>
		line 2</li>
	<li>
		line 3</li>
</ul>

then apply a style (from the Styles list) to the UL. The style is then applied to all LI children elements...

On my site, applying a style ({ name : 'Slider content' , element : 'div',attributes : { 'class' : 'slider_content' }}) to the UL gives this :

<ul>
	<li>
		<div class="myClass">line 1</div></li>
	<li>
		<div class="myClass">line 2</div></li>
	<li>
		<div class="myClass">line 3</div></li>
</ul>

instead of :

<div class="myClass">
<ul>
	<li>
		line 1</li>
	<li>
		line 2</li>
	<li>
		line 3</li>
</ul>
</div>

hoping I am not mistaking on this issue...

Change History (2)

comment:1 Changed 8 years ago by Tobiasz Cudnik

Component: GeneralCore : Styles
Description: modified (diff)
Keywords: styles wrap class ul removed

comment:2 Changed 8 years ago by Tobiasz Cudnik

Status: newconfirmed

It seems our styling system lacks support of fully selected parent element.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy