Closed Bug 1480043 Opened 3 years ago Closed 3 years ago

Remove the concept of 'canonical' pseudos.

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 file)

I don't think we need it for compat, and I don't think I like the concept...


I think we should go for parse-time aliases like we do for properties unless we find someone relying on the opposite, since that's also what other browsers do and what we do for ::selection.
We only have this so that ::-moz-placeholder keeps serializing as
::-moz-placeholder, but I don't think anybody really cares.

Edge aliases ::-webkit-input-placeholder to ::-ms-input-placeholder at parse
time as well, as can be seen in:

```
let s = document.createElement('style');
s.innerHTML = `input::-webkit-input-placeholder { color: red };`;
document.body.appendChild(s);
document.body.innerHTML = s.sheet.cssRules[0].cssText;
```

And I think this is more consistent with what we do for CSS properties that are
aliases.
Comment on attachment 8996654 [details]
Bug 1480043: Remove the concept of 'canonical' pseudos. r=xidorn

Xidorn Quan [:xidorn] UTC+10 has approved the revision.

https://phabricator.services.mozilla.com/D2595
Attachment #8996654 - Flags: review+
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7f4350bb481a
Remove the concept of 'canonical' pseudos. r=xidorn
https://hg.mozilla.org/mozilla-central/rev/7f4350bb481a
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.