Opened 14 years ago
Last modified 8 years ago
#8118 confirmed Bug
[FF] Strikethrough style works incorrectly for bigger fonts
Reported by: | dariusz.czumaj | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Styles | Version: | 3.0 |
Keywords: | IBM | Cc: | monahant@…, satya_minnekanti@… |
Description
Horizontal line that should be in the middle of text is at the bottom and looks like underline instead of strikethrough.
Way to reproduce:
- input some text
- change the font size of provided text to 72
- choose 'strikethrough' option from toolbar
Change History (7)
comment:1 Changed 14 years ago by
Keywords: | strikethrough removed |
---|---|
Status: | new → confirmed |
Version: | 3.6.1 → 3.0 |
comment:2 follow-up: 5 Changed 12 years ago by
Cc: | monahant@… added |
---|---|
Keywords: | IBM added |
Note: This only occurs if you change the font size before applying the strike through. If you apply strike through and then change the font size this does not happen because the strike tag is included inside the span tag:
<span style="font-size:72px;"><strike>Sample text</strike></span>
comment:4 Changed 11 years ago by
Summary: | Strikethrough style works incorrectly for bigger fonts → [FF] Strikethrough style works incorrectly for bigger fonts |
---|
comment:5 Changed 9 years ago by
Replying to tmonahan:
Note: This only occurs if you change the font size before applying the strike through. If you apply strike through and then change the font size this does not happen because the strike tag is included inside the span tag:
AFAICS you can repro this issue in both cases, so the order does not matter.
The thing is that all browsers except FF will adjust strike through as the font size changes. It all happens behind the scenes.
comment:6 Changed 8 years ago by
@m.lewandowski from what I have checked @tmonahan might be right. When you use below code in contenteditable element, first two will display nicely, the other two with the strike line at the bottom of the text
//work <p><span style="font-size:72px;"><strike>Sample text</strike></span></p> <p> <span style="text-decoration: line-through;font-size:500%;"> Sample text </span> </p> //don't work <p><strike><span style="font-size:72px;">Sample text</span></strike></p> <p> <span style="text-decoration: line-through;"> <span style="font-size:500%;"> <span class="Bold">Sample text</span> </span> </span> </p>
If we could put strike inside the font-size span
or we could put all styles into one span, then it would work.
This is the code produced by CKEditor.
This is the code produced by CKEditor in XHTML sample (more or less – I have replaced classes with styles)
If you paste the above code into HTML page and open in a Firefox or Opera browser than you will see that effect is the same as in CKEditor – line at the bottom of the text.
This is how those two browsers see it.
The only question from me would be – is it possible to change the code produced by CKEditor from the above to the code presented below:
This code displays strike-through line in the middle of the text in every browser.
Reproducible in Firefox and Opera from CKEditor 3.0.