Opened 13 years ago
Closed 13 years ago
#8181 closed Bug (duplicate)
Incorrect background color setting while changing font size.
Reported by: | Krzysztof Studnik | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Styles | Version: | 3.0 |
Keywords: | Cc: |
Description
- Set text background color to
background-color:#0000ff
or any other. - Type few characters and press space
- Change font size to bigger one
- Repeat step 2 and 3 until font size 72
Expected
Each part of text should have its own background, height of background is set according to font size.
Example:
<p> <span style="font-size:24px;"><span style="background-color:#0000ff;">asd </span><span style="font-size:36px;"><span style="background-color:#0000ff;">asd </span><span style="font-size:72px;"><span style="background-color:#0000ff;">asd </span></span></span></span></p>
Actual
<p> <span style="background-color:#0000cd;">asd<span style="font-size: 16px;"> asd<span style="font-size: 20px;"> asd<span style="font-size: 24px;"> asd <span style="font-size: 72px;">asd</span></span></span></span></span></p>
Attached screen
additional info
I was able to reproduce this under FF since cke30, under webkit browsers since 3.5.3 (afer "setting style on colapsed selection" was solved)
Attachments (1)
Change History (8)
Changed 13 years ago by
Attachment: | zrzut_ekranu-18.png added |
---|
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|
comment:5 Changed 13 years ago by
From the ticket #8437 you can see that same thing can be reproduced when pasting from Word.
IMO if CKEditor could wisely switch spans from
<span style="background:lime;"> <span style="color:white;"> <span style="font-size:36.0pt;">WORD</span> </span> </span>
to (size around background color)
<span style="font-size:36.0pt;"> <span style="background:teal;"> <span style="color:white;">ABC</span> </span>
Problem would be solved .
Reproducible in all browsers from CKE 3.0.