Simplify the implementation of HasAuthorSpecifiedRules.
Categories
(Core :: CSS Parsing and Computation, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(1 file)
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
This patch computes the author-specified properties during the CSS cascade, and
removes the complex rule-tree-based implementation that tries to do the cascade
again.
This changes behavior in two ways, one of them which is not observable to
content, I believe:
-
revert now re-enables the native styling. This was brought up in
https://github.com/w3c/csswg-drafts/issues/4777 and I think it is a bug-fix.This is observable to content, and I'm adding a test for it.
-
We don't look at inherited styles from our ancestors when
inherit
is
specified in a non-author stylesheet. This was introduced for bug 452969 but
we don't seem to inherit background anymore for file controls or such. It
seems back then file controls used to have a text-field.I audited forms.css and ua.css and we don't explicitly inherit
padding / border / background-color into any nested form control.
We keep the distinction between border/background and padding, because the later
has some callers. I think we should try to align with Chromium in the long run
and remove the padding bit.
Comment 3•5 years ago
•
|
||
Backed out for assertion failures.
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=294873391&repo=autoland&lineNumber=37392
Backout: https://hg.mozilla.org/integration/autoland/rev/11a006e5dfc6a708ff73268186afae8361fb2949
Later edit: Another failure https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=294879780&repo=autoland&lineNumber=2343
Assignee | ||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
Description
•