Closed Bug 236897 Opened 20 years ago Closed 20 years ago

text-decoration: blink: it's impossible to turn off, or on via DOM

Categories

(Core :: DOM: CSS Object Model, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8alpha1

People

(Reporter: gellert.gyuris, Assigned: bzbarsky)

References

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; hu-HU; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu-HU; rv:1.6) Gecko/20040206 Firefox/0.8

it's impossible to turn off, or on via DOM

Reproducible: Always
Steps to Reproduce:
1. switch text-decoration 
2.
3.
Attached file testcase
Keywords: testcase
See also bug 179079 (might be related, but does not involve scripting).
(In reply to comment #2)
> See also bug 179079 (might be related, but does not involve scripting).

Last testcase does
Probably an issue with the textframes not killing off the blink timer... The
problem is that text frames are added to and removed from the blink timer in
reflow, but changing text-decoration only does a repaint....
Come to think of it, can text-decoration affect line-box sizing?  If so, could
it need reflow anyway?
I wouldn't have thought they could affect line-box sizing.

I don't see a problem with making text-decoration just do a reflow. It's
unlikely to be performance critical.
I'd rather not make text-decoration changes reflow.  changing text-decoration on
:hover (for links) is not uncommon.
The other option is to reflow only if the "blink" bit changed....  That should
happen about once in a blue moon.
Attached patch Like soSplinter Review
Though really, maybe we should just remove blink....
> (This fixes turning off too?)

Yep.  Fixes all testcases in this bug and in bug 179079.  Taking, I guess.
Assignee: general → bzbarsky
Blocks: 179079
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: --- → mozilla1.8alpha
Checked in for 1.8a.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: