Closed Bug 945302 Opened 11 years ago Closed 6 years ago

@-moz-document regexp() does not update dynamically when following an in-page anchor

Categories

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

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: sjw+bugzilla, Unassigned)

References

Details

Attachments

(1 file)

226 bytes, text/html
Details
Attached file testcase
See added testcase.
After clicking on the Link, the background should change immediately, but you have to reload (rephrase) the page first.
Presumably we need to restyle on document URI changes.  Probably only when regexp() rules are used, because otherwise pushState/popState will get prohibitively slow.
Summary: @-moz-document does not update → @-moz-document regexp() does not update dynamically when following an in-page anchor
Alternatively, maybe @-moz-document shouldn't include the hash portion of the URI?
That may not help with pushState(), right?
(In reply to David Baron [:dbaron] (needinfo? me) (UTC-8) from comment #2)
> Alternatively, maybe @-moz-document shouldn't include the hash portion of
> the URI?

I think we schould keep this feature. It's a useful alternatve to the :targe pseudo-class and it's the only way to style more than just one element in a dynamic site.
Or we propose a new one, like target() or id()
Priority: -- → P5
The current plan is just to support a url-prefix() hack in bug 1446470, so I don't think we need to do anything for regexp().
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: