Closed
Bug 20760
Opened 25 years ago
Closed 24 years ago
browser.underline_anchors pref is not fully implemented
Categories
(SeaMonkey :: Preferences, defect, P2)
SeaMonkey
Preferences
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: sfraser_bugs, Assigned: attinasi)
References
Details
Attachments
(1 file)
The 'underline links' pref does not work -- turning it off has no effect on the
rendering of pages.
Bulk moving Pref UI bugs to new component Preferences.
Component: Pref UI → Preferences
Comment 4•25 years ago
|
||
Reassigning for Don
Assignee: matt → mcafee
Status: ASSIGNED → NEW
Keywords: nsbeta2
Whiteboard: [FEATURE]
Target Milestone: M16 → M17
Putting on NEED INFO radar. Can we get a retest with latest build please.
Whiteboard: [FEATURE] → [NEED INFO][FEATURE]
Reporter | ||
Comment 6•25 years ago
|
||
The checkbox is in the UI, bug does nothing. A workaround is to put a file called
user.css in {profile dir}/chrome/, and edit the CSS there for links. Most users
won't manage this.
Putting on [nsbeta2+][5/16] radar. This is a feature MUST complete work by
05/16 or we may pull this feature for PR2.
Whiteboard: [NEED INFO][FEATURE] → [nsbeta2+][5/16][FEATURE]
Comment 8•25 years ago
|
||
Pref UI is working and setting browser.underline_anchors properly,
it looks like layout is not honoring this pref.
over to rickg for layout triage.
Assignee: mcafee → rickg
Component: Preferences → Layout
Summary: 'Underline links' pref does not work → layout not browser.underline_anchors
Updated•25 years ago
|
QA Contact: sairuh → petersen
Giving us a bug TODAY with a deadline to fix TODAY is not leaving much time for
the actual work. I'll triage, but don't expect the fix.
Comment 10•25 years ago
|
||
I've spoken with MarcA; the issue isn't hard, but it's not a "one-night" fix.
The issues are: 1) seperating link styles into their own stylesheet; 2)
Reassigning.
Assignee: rickg → attinasi
Assignee | ||
Comment 11•25 years ago
|
||
1) move :link rules into seperate stylesheet
2) have ua.css import that stylesheet
3) have the pref code fetch the stylesheet from the styleset and enable/disable
it depending on the value of the pref., then issue a style-change reflow if the
state changed
Status: NEW → ASSIGNED
Reporter | ||
Comment 12•25 years ago
|
||
Don't we need a more general way that prefs can override CSS-controlled
appearance? There are quite a few prefs like this, like page background colors
etc, and you'll end up with a gazillion tiny CSS files, if you use this approach.
Why not either
1) hack the CSS code to override some styles in html.css by looking at prefs
when the file is first read in
2. leverage user.css in the profile folder, maybe writing CSS into this file
based on pref settings.
Assignee | ||
Comment 13•25 years ago
|
||
Excellent points, Simon.
I didn't realize there were many needs to override CSS-defined properties based
on prefs... What is the user.css file all about? I am not familiar with it. The
idea of a user-specific pref CSS file makes a lot of sense, and writing /
removing style rules there based on prefs sounds like a good idea too.
Hacking the CSS code to filter the style rules based on the prefs would be very
ugly. we would have to enumerate all rules, find the selectors for links, and
remove those rules, and the be prepared to put them back in later if the pref
is changed back... blah. By the time we *apply* the rules we don't know if they
are from html.css or the author's stylesheet, so we cannot hack it there. I like
the user.css idea much better - easier to implement and maintain too, me thinks.
Is this feature really that valuable? Don't people rely on style-queues to know
what is clickable (of course author style sheets may render links differently,
but by default users need *some* hint when the mouse is not over the link, and
the underline is the de facto link indicator IMO).
Summary: layout not browser.underline_anchors → browser.underline_anchors pref is not fully implemented
Reporter | ||
Comment 14•25 years ago
|
||
Is this feature valuable? Sure, it's one of the first things that I turn off in a
new profile, and, on Mac, there is an OS-level setting (in Internet Config) for
underline links, as well as page colors. Link color is enough for me. Also,
typographic types will tell you that underline is typographically poor, because
it interferes with character descenders.
Reporter | ||
Comment 15•25 years ago
|
||
Oh, and hyatt is responsible for {profile}/chrome/user.css, and putting HTML CSS
in there for links works.
Comment 16•25 years ago
|
||
It would be nice to keep ua.css so it's editable by the user, who can make
further adjustments. (Important for power users, but there could also be
pre-designed user stylesheets for users with disabilities.)
Would it be easier to have code that writes out CSS, or would it be easier to
dynamically modify an existing user (or maybe between UA and user?) stylesheet
data structure based on the prefs (which I would think would be rather easy,
considering it's possible through the DOM, given such a stylesheet)?
Assignee | ||
Comment 17•24 years ago
|
||
The easiset way to achive this is to add the following rule to user.css when the
user chooses to disable underlined links:
:link, :visited, :out-of-date, :active { text-decoration: none; }
When the user chooses to re-enable underlined links the rule has to be removed,
or changed to:
:link, :visited, :out-of-date, :active { text-decoration: underline; }
In either case the stylesheet has to be re-loaded. I am guessing that the pref
code can do this pretty easily (if not, then Style will ahve to provide a way to
manipulate specific rules, and that probably won't happen for PR2).
I'm changing the component back to Preferences. Please advise if the proposed
solution is unacceptable.
Assignee: attinasi → clayton
Status: ASSIGNED → NEW
Assignee | ||
Comment 18•24 years ago
|
||
This was suppossed to go to Preferences... trying again
Assignee: clayton → matt
Component: Layout → Preferences
QA Contact: petersen → sairuh
Comment 20•24 years ago
|
||
Actually, the rule will have to be:
:link, :visited, :out-of-date,
:link:active, :visited:active, :out-of-date:active {
text-decoration: none;
}
...so that it only affects :active links (and not anything that is clicked).
However, I think the :active underlining in html.css (soon to be htmlstd.css)
is superfluous, and may be removed. If it is, then the needed rule will just be:
:link, :visited, :out-of-date { text-decoration: none; }
I'm assuming we don't want author-requested underlining to be overriden; if we
do then the rule should have "!important" inserted between "none" and the
semicolon.
OS: Mac System 8.5 → All
Reporter | ||
Comment 21•24 years ago
|
||
Just a random thought; instead of going this route of having prefs write out
changes to user.css, can we use (or extend) the 'behavior' CSS attribute, and
make use of XBL to have css attributes that are overridable in code?
Comment 23•24 years ago
|
||
Putting on [nsbeta2-] radar. Removing [5/16]. Did not make feature train.
Whiteboard: [nsbeta2+][5/16][FEATURE] → [nsbeta2-]
Comment 24•24 years ago
|
||
*** Bug 41296 has been marked as a duplicate of this bug. ***
Comment 25•24 years ago
|
||
Also note that Internet Explorer has an option to show the underline ONLY when
the mouse is hovering over the link itself. Might want to consider a solution
that will allow for this, too.
Comment 26•24 years ago
|
||
*** Bug 46262 has been marked as a duplicate of this bug. ***
Comment 27•24 years ago
|
||
FYI: if you want to mirror the IE link hover option, then add the following to
the user.css file described in the prior posts (thanks guys!):
a:hover
{
text-decoration : underline;
}
Or just change the background color when hovering over a link:
a:hover
{
background-color : #808080;
}
Comment 28•24 years ago
|
||
:link:hover, :visited:hover is better than a:hover (which matches named
anchors). See http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links
Comment 30•24 years ago
|
||
Adding nsbeta3 keyword to bugs which already have nsbeta3 status markings so
the queries don't get all screwed up.
Keywords: nsbeta3
Comment 31•24 years ago
|
||
*** Bug 49371 has been marked as a duplicate of this bug. ***
Updated•24 years ago
|
Comment 32•24 years ago
|
||
*** Bug 52360 has been marked as a duplicate of this bug. ***
Comment 33•24 years ago
|
||
could we get this in for rtm?
Comment 34•24 years ago
|
||
Chris, we need to make this pref work for RTM. Or take it out. Will the simple
change to user.css work?
Priority: P3 → P2
Whiteboard: [nsbeta2-][nsbeta3-] → [nsbeta2-][nsbeta3-][RTM NEED INFO]
Comment 35•24 years ago
|
||
similar style sheet problems to bug 22963?
Adding attinasi.
Assignee | ||
Comment 36•24 years ago
|
||
Like bug 22963, this one requires that we insert style rules or subvert the
style system to make the pref work. I'd prefer to avoid subverting the style
system if we can help it...
We can either add entries to the userContent.css file or insert style rules via
the CSSOM. The problem with the userContent.css file is that it is loaded only
at startup, whereas we can insert and remove rules at will using the CSSOM.
Bug 22963 has been RTM+'d, so this bug should probably follow suit and be sent
back to me, since I have to fix 22963 and this is essentially the same work.
Comment 37•24 years ago
|
||
given marc's input above, am clearing the status so that we could [hopefully]
get an rtm+ nomination.
Whiteboard: [nsbeta2-][nsbeta3-][RTM NEED INFO] → [nsbeta2-][nsbeta3-]
Assignee | ||
Comment 39•24 years ago
|
||
OK, back to me I guess. I was really hoping somebody would make a call on how
important this is, in relation to other RTM issues. Like I said in my comment of
2000-09-29 17:32, this is related to two other pref bugs that I have so I'll try
to tackle them all together. Chris K., do you want to rtm+ this one?
Status: NEW → ASSIGNED
Assignee | ||
Comment 40•24 years ago
|
||
I've got this working now and will be attaching the patches very soon (still
testing and getting composer to cooperate). Stand by...
Reporter | ||
Comment 41•24 years ago
|
||
cc brade to test prefs in composer.
Comment 42•24 years ago
|
||
cc'ing sujay so that he too can test this in composer.
Comment 43•24 years ago
|
||
Ooohh! Finally, the 2000101212 build looks to be fixed!
Assignee | ||
Comment 44•24 years ago
|
||
See wrap-up bug 40340 for patches. I have only checked this in on the trunk -
still waiting for permission to apply to branch (for RTM of ns6).
Comment 45•24 years ago
|
||
Marking [rtm need info] since there's a fix. Please attach the patch to the bug
and get r=/sr= for consideration of approval to land in the RTM branch. When
this is done, please change the status whiteboard to rtm+
Whiteboard: [nsbeta2-][nsbeta3-] → [nsbeta2-][nsbeta3-][rtm need info]
Assignee | ||
Comment 46•24 years ago
|
||
As I said previously, the patch is attached to roll-up bug 40340. It is crazy to
try and extricate the underline-pref change from the other pref changes, that is
why I am using bug 40340 as a blanket for all of the pref bugs, and why there is
a single patch for the colors, link colors, link underlining and font prefs.
Comment 47•24 years ago
|
||
Removing rtm, since this is covered by bug 40340.
Keywords: rtm
Whiteboard: [nsbeta2-][nsbeta3-][rtm need info] → [nsbeta2-][nsbeta3-]
Assignee | ||
Comment 48•24 years ago
|
||
Fixed by checkin for bug 40340
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 49•24 years ago
|
||
yes! vrfy fixed using 2000.10.25.09/08-n6 commercial branch bits on linux, winnt
and mac.
thx a bunch, marc!
Keywords: vtrunk
Comment 50•24 years ago
|
||
I'm seeing this problem again, starting with the 20001031 Mtrunk builds. Can
someone confirm this, or have any ideas about it?
Comment 51•24 years ago
|
||
warner, what platforms are you using?
Assignee | ||
Comment 52•24 years ago
|
||
I just checked with my 10-31 Netscape Commercial build and it is working fine
for me (WinNT).
Comment 53•24 years ago
|
||
I'm using Win95 and Win98. Specifically, I'm using the builds from the build
bar on mozillazine.org. When I go back to the 2000103004 build, links are
correctly rendered (i.e. not underlined). Using the 2000103104 build, all links
are underlined.
Reporter | ||
Comment 54•24 years ago
|
||
Reopening. On the trunk, link are always underlined again, irrespective of the
pref setting (seen on Mac)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 55•24 years ago
|
||
Accepting: my mistake. I accidentally put the :link and :visited
text-decoration:underline rules back into html.css in my last checkin of that
file. Removing now, and I'm very sorry.
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 56•24 years ago
|
||
Comment 57•24 years ago
|
||
adding r=peterl
Whiteboard: [nsbeta2-][nsbeta3-] → [nsbeta2-][nsbeta3-] r=peterl
Assignee | ||
Comment 58•24 years ago
|
||
I got an sr=buster too, so I checked in the regression-fix to the trunk. Marking
FIXED, and again, I extend my apologies for the regression.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 59•24 years ago
|
||
thx, marc!
warner, let us know how this works for you...
Comment 60•24 years ago
|
||
I'm working on verification of the bug #40340 on the trunk builds, so
I'd verify this one as well, if this is OK with you.
"Underline links" works fine now.
Verified on the trunk with nov_3 builds on MacOS 9, WinNT 4, Linux.
Removing vtrunk keyword.
Marking as VERIFIED.
Status: RESOLVED → VERIFIED
Keywords: vtrunk
Comment 61•24 years ago
|
||
Yup, working now in 2000110304 build.
Comment 62•24 years ago
|
||
I just installed build 2000101014. Links are always underlined. The underline
links checkbox has no effect on this.
Mozilla M18
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20001010
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment 63•24 years ago
|
||
I just installed build 2000101014. Links are always underlined. The underline
links checkbox has no effect on this.
Mozilla M18
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20001010
Comment 64•24 years ago
|
||
Why did you install a build that is two months old? Please get a nightly.
Remark: FIXED.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 65•24 years ago
|
||
vrfy per olga charapaev 2000-11-03 12:06
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•