Closed
Bug 482283
Opened 16 years ago
Closed 16 years ago
text-decoration: line-through ignored on buttons in strict mode
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 219516
People
(Reporter: ktaylor, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
The text-decoration: line-through style is ignored on button elements in strict mode.
Reproducible: Always
Steps to Reproduce:
see attached test case
Actual Results:
The button text does not have a line through it.
Expected Results:
The button text should have a line through it.
Reporter | ||
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
It is possible your code is just wrong. This is what it should be :
<button><span style="text-decoration:line-through;">Strike me</span></button>
Comment 3•16 years ago
|
||
The right code
Reporter | ||
Comment 4•16 years ago
|
||
(In reply to comment #2)
> It is possible your code is just wrong. This is what it should be :
> <button><span style="text-decoration:line-through;">Strike me</span></button>
That will function as a work around, but I don't see how it is more correct.
Comment 5•16 years ago
|
||
(In reply to comment #4)
> (In reply to comment #2)
> > It is possible your code is just wrong. This is what it should be :
> > <button>Strike me</span></button>
>
> That will function as a work around, but I don't see how it is more correct.
<button> just says the text should be a button you have to apply an extra style to the text by <span style="text-decoration:line-through;"> or by linking a .css file to the html file. Something your .css could look like this :
h1 {
text-decoration:line-through;
}
and then the following code in your html file <button><h1>Strike me</h1></button>
Updated•16 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•