Using classes for font-size causes nesting issues #1951
Labels
plugin:font
The plugin which probably causes the issue.
status:confirmed
An issue confirmed by the development team.
type:bug
A bug.
Are you reporting a feature request or a bug?
Bug
When using classes for font-sizes instead of styling, you can get nesting issues.
Provide detailed reproduction steps (if any)
<p>Hello this is some text</p>
<p>Hello this <span class="x-large">is</span> some text</p>
Expected result
What is the expected result of the above steps?
<p><span class="x-small">Hello this is some text</span></p>
The inner span styling of
x-large
should be removed similar to how the font-size would get removed.Actual result
What is the actual result of the above steps?
<p><span class="x-small">Hello this <span class="x-large">is</span> some text</span></p>
The inner styling remains.
JSFiddle: https://jsfiddle.net/yroL0vnk/
Gif of bug: http://g.recordit.co/oNbSSCUCXa.gif
The text was updated successfully, but these errors were encountered: