Closed
Bug 58534
Opened 24 years ago
Closed 23 years ago
Put back :link and :visited rules into html.css
Categories
(Core :: CSS Parsing and Computation, defect, P1)
Core
CSS Parsing and Computation
Tracking
()
VERIFIED
WONTFIX
mozilla1.0
People
(Reporter: pierre, Assigned: glazou)
Details
(Keywords: css1, css3, Whiteboard: Fix in hand, WG[CSS1-2.1] EDITORBASE+ [adt2])
Attachments
(1 obsolete file)
Comment 1•24 years ago
|
||
I think we need to support a new property like -moz-pref-linkcolor and
-moz-pref-visitedcolor to do this. If we just put in the old standard 'blue' and
'purple' colors, then we will have to raise the specificity of the rule in the
pref stylesheet to override it, which is why I originally removed it.
Thanks for filing this, Pierre - accepting.
Status: NEW → ASSIGNED
Comment 2•24 years ago
|
||
This would also fix the problem whereby links in HTML sidebar panels that have
no colouring CSS of their own do not get coloured links.
Marc: Your solution sounds good. In fact, it sounds like those colours could be
useful additions to CSS3 -- we could bring it up on the WG.
Keywords: css1,
mozilla1.0
Whiteboard: WG
Comment 3•24 years ago
|
||
Check bug 66578 when this is fixed - Composer has been hacked until this is
right.
Comment 4•24 years ago
|
||
According to the CSS WG, there is already a property value planned for link
colors. If you have W3C memeber access, see
the discussion on the list at:
http://lists.w3.org/Archives/Member/w3c-css-wg/2000OctDec/0215.html
otherwise trust that they are 'HyperLink, HyperlinkText, HyperlinkBorder' and
'VisitedHyperLink, VisitedHyperLinkText, VisitedHyperLinkBorder' - of course,
these may change...
Comment 5•24 years ago
|
||
Netscape's standard compliance QA team reorganised itself once again, so taking
remaining non-tables style bugs. Sorry about the spam. I tried to get this done
directly at the database level, but apparently that is "not easy because of the
shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
Comment 6•24 years ago
|
||
CC'ing Daniel. Daniel, what do you think about implementing this new set of
property values for the link colors? I can fill you in on any of the details if
you are interested...
Updated•23 years ago
|
Target Milestone: --- → mozilla1.0
Comment 8•23 years ago
|
||
Moving from Moz1.0 to future-P1. All bugs scheduled for Moz1.0 need to
nominated using the nsbeta1 keyword.
Priority: P3 → P1
Target Milestone: mozilla1.0 → Future
Updated•23 years ago
|
Whiteboard: WG → WG[CSS1-2.1]
Comment 9•23 years ago
|
||
carryover EDITORBASE and nsbeta1 from dependent bug 57757
Keywords: nsbeta1
Whiteboard: WG[CSS1-2.1] → WG[CSS1-2.1] EDITORBASE
Comment 10•23 years ago
|
||
The CSS3 colour module has the required colour keywords (because of his bug).
Comment 11•23 years ago
|
||
Minusing because 57757 was made EDITORBASE-
Updated•23 years ago
|
Comment 12•23 years ago
|
||
Daniel, could you tell us how much work is involved with this?
Updated•23 years ago
|
Whiteboard: WG[CSS1-2.1] EDITORBASE+ → WG[CSS1-2.1] EDITORBASE+ [adt2]
Assignee | ||
Comment 13•23 years ago
|
||
Syd : strange.. I never received the bugmail going with your comment #12 :-/
Anyway... It implies implementing the HyperlinkText and VisitedHyperlinkText new
system colors from document [1].
That document is a Last Call working draft and is fairly stable. I think we
can do it w/o risk.
Working on it now.
Status: NEW → ASSIGNED
Assignee | ||
Comment 14•23 years ago
|
||
Trivial fix coming ; stay tuned.
Assignee | ||
Comment 15•23 years ago
|
||
Akkana : fixing this bug needs very light modifications in nsXPLookAndFeel.cpp :
both colorPrefChanged() and InitColorFromPref() call only NS_ColorNameToRGB()
to translate a color name stored in a pref into a RGB color. But they never
try to call NS_LooseHexToRGB(). That blocks this current bug because colors
stored in prefs 'browser.visited_color' and 'browser.anchor_color' are
"#RRGGBB" strings...
Isn't it a bug that they try to deal only with color names ? Is there any
danger trying to also deal with "#RRGGBB" string form for colors ?
Assignee | ||
Comment 16•23 years ago
|
||
Trivial implementation of HyperlinkText and VisitedHyperlinkText color names
from
the CSS 3 Color Module.
This part of the fix does not include the work that has to be done on the
stylesheets themselves.
Akkana, can you please review ?
Assignee | ||
Updated•23 years ago
|
Summary: Put back :link and :visited rules into html.css → [PATCH] Put back :link and :visited rules into html.css
Whiteboard: WG[CSS1-2.1] EDITORBASE+ [adt2] → Fix in hand, WG[CSS1-2.1] EDITORBASE+ [adt2]
Could you either point to a spec that lists those keywords or add -moz- to the
beginning of them (and list them along with the other -moz- keywords, using the
same type of prefix on the variable name as well)?
/me reads. Never mind. (But do you think the color module is stable enough?)
Comment 19•23 years ago
|
||
color is not yet in CR -- it's not even yet in Last Call -- so please prefix the
value names with -moz-. Thanks.
Comment 20•23 years ago
|
||
The code changes look fine -- yes, adding the checks for #rrggbb color specifiers
seems like the right thing to do -- but is "look and feel" really the right
place for these browser-specific prefs? Won't these conflict with the existing
prefs that are already used for that purpose, browser.anchor_color and
browser.visited_color?
Assignee | ||
Comment 21•23 years ago
|
||
Hixie said :
> color is not yet in CR -- it's not even yet in Last Call -- so please prefix
> the value names with -moz-. Thanks.
Ian, you should read better the CSS mailing-lists... Excerpt from
http://www.w3.org/TR/css3-color/ :
This document is a working draft of the CSS working group which is part of the
style activity (see summary). This is a W3C Last Call Working Draft. Last call
means....
I don't think it makes any sense to prefix it with -moz- . Yes David, I think
this part of the document is stable enough to implement it as it is in the
document.
Akkana : there is nothing in the OS for these color names ; these color names
are really what we call browser.visited_color and browser.anchor_color
Comment 22•23 years ago
|
||
I stand corrected. However, we really should not be implementing anything
without -moz- prefixes until the relevant spec is in CR, however stable we think
it might be. That's the whole point of the whole -vendor-prefix thing.
Comment 23•23 years ago
|
||
> Akkana : there is nothing in the OS for these color names ; these color names
> are really what we call browser.visited_color and browser.anchor_color
That's why I questioned putting them in nsLookAndFeel since we already have
browser preferences for these. I'm not clear what the difference is between the
new look-and-feel prefs and the existing prefs, or why anyone would ever want to
make these prefs platform specific (which is basically what nsILookAndFeel is
used for).
Comment 24•23 years ago
|
||
cc'ing myself
Comment 25•23 years ago
|
||
nsbeta1-. Not a "stop ship" bug
Comment 26•23 years ago
|
||
I'm just adding some more specific info, in case. The initial viewing of pages
with the a:whatever psudo-class works as expected. But after a page has been
visited, the color and text-decoration are ignored on the link.
Assignee | ||
Updated•23 years ago
|
Attachment #83722 -
Attachment is obsolete: true
Assignee | ||
Comment 27•23 years ago
|
||
I have a real problem with this bug (besides the fact it blocks 577757 which is
nsbeta1+ editorbase+) : the two pref colors for anchors and visited anchors are
used by PresShell::SetPrefLinkRules() to generate the two rules
*:link { color: xxxxx }
*:visited { color : yyyyy }
in the PreferenceStyleSheet.
I have a working easy patch for that, introducing the new -moz-hyperlinktext and
-moz-visitedhyperlinktext values for the color property.
**BUT** the declarations in the two rules above are made !important (or not)
depending on the pref browser.display.use_document_colors ....
And we have no real way of specifying a "dynamic" importance for a rule,
depending on a pref.
My patch this bug is still worth (and in fact important) for bug 57757. But
it does not really solve the current bug.
Opinions ?
Summary: [PATCH] Put back :link and :visited rules into html.css → Put back :link and :visited rules into html.css
I don't see any reason why this bug, as stated in comment 0, should be fixed.
(I'd rather see those prefs moved into an additional C++ implementation of
nsIStyleSheet rather than in a pasted-together CSS stylesheet -- I think the
code would end up being a good bit simpler and more flexible. However, that's
another issue.)
Assignee | ||
Comment 29•23 years ago
|
||
WONTFIX as per of comment 28.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•