Closed Bug 1444059 Opened 7 years ago Closed 7 years ago

Expected color but found ‘-moz-activehyperlinktext’. Error in parsing value for ‘color’. Declaration dropped.

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: Paenglab, Assigned: emilio)

Details

With locally built TB 60 I see this error: Expected color but found ‘-moz-activehyperlinktext’. Error in parsing value for ‘color’. Declaration dropped. I see this also when I set this color in FX. With a official Daily, where stylo is disabled, I don't see this error. So it's probably a stylo error.
> #[derive(Clone, Copy, Debug, Eq, Hash, MallocSizeOf, Parse, PartialEq, ToCss)] > pub enum SpecialColorKeyword { > MozDefaultColor, > MozDefaultBackgroundColor, > MozHyperlinktext, > MozActiveHyperlinktext, > MozVisitedHyperlinktext, > } So it is actually changed to -moz-active-hyperlinktext, which is regressed by servo/servo#19903.
Fixing this should be pretty trivial... Just change the case...
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #1) > > #[derive(Clone, Copy, Debug, Eq, Hash, MallocSizeOf, Parse, PartialEq, ToCss)] > > pub enum SpecialColorKeyword { > > MozDefaultColor, > > MozDefaultBackgroundColor, > > MozHyperlinktext, > > MozActiveHyperlinktext, > > MozVisitedHyperlinktext, > > } > > So it is actually changed to -moz-active-hyperlinktext, which is regressed > by servo/servo#19903. Actually, these values seem unused and untested, can't we just rip them off?
Seems like they're obsolete (they were used until when we have a pref sheet). The only test is disabled (bug 1207190), lol. I'll fix them for now because I can't remove the DefaultBackgroundColor one (is used), and I don't want to do the intent to unship dance just for three hyperlink constants.
[Triage 2018/03/23 - P3]
Priority: -- → P3
This has been fixed by servo/servo#20240.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee: nobody → emilio
You need to log in before you can comment on or make changes to this bug.