Implement Basic Matching for @scope
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox128 | --- | fixed |
People
(Reporter: dshin, Assigned: dshin)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Keywords: dev-doc-complete, perf-alert)
Attachments
(7 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
No caching, but rules inside @scope block should match for applicable elements in scope.
Assignee | ||
Comment 1•9 months ago
|
||
Uses the u32 hole left in ApplicableDeclarationBlock
.
Updated•9 months ago
|
Assignee | ||
Comment 2•9 months ago
|
||
Depends on D207778
Assignee | ||
Comment 3•9 months ago
|
||
:scope
gets implicitly added if not present, without contributing
specificity (See https://github.com/w3c/csswg-drafts/issues/10196).
&
is replaced with scope-start
selector, or :scope
if it not
specified.
Depends on D207779
Assignee | ||
Comment 4•9 months ago
|
||
Keep track of implicit scopes for shadow DOM styled separately,
as cascade data for shadow DOM are shared.
Depends on D207780
Assignee | ||
Comment 5•9 months ago
|
||
Scoped style with implicit scope at the top of the shadow tree
matches the featureless shadow host.
Depends on D207781
Assignee | ||
Comment 6•9 months ago
|
||
Depends on D207782
Assignee | ||
Comment 7•9 months ago
|
||
Depends on D207783
Comment 8•9 months ago
|
||
I thought I already noted that, bug once this lands, it should be added to https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features.
Sebastian
Comment 11•8 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5d0e8b9abbf4
https://hg.mozilla.org/mozilla-central/rev/0aaa4fdb29e3
https://hg.mozilla.org/mozilla-central/rev/fae17dbd22d2
https://hg.mozilla.org/mozilla-central/rev/ca2516594d77
https://hg.mozilla.org/mozilla-central/rev/0960c41d614f
https://hg.mozilla.org/mozilla-central/rev/bddfdb4b7b66
https://hg.mozilla.org/mozilla-central/rev/e07b07b08958
Comment 13•8 months ago
|
||
(In reply to Pulsebot from comment #9)
Pushed by dshin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d0e8b9abbf4
Part 1 - Introduce scope proximity in cascade ordering.
r=firefox-style-system-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/0aaa4fdb29e3
Part 2 - Infrastructure for checking scoped styles.
r=firefox-style-system-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/fae17dbd22d2
Part 3 - Implement substitutions in@scope
.
r=firefox-style-system-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/ca2516594d77
Part 4 - Add support for implicit scope.
r=firefox-style-system-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/0960c41d614f
Part 5 -:scope
is featureless in scoped style, if it refers to the shadow
host. r=firefox-style-system-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/bddfdb4b7b66
Part 6 - Implement scoped styles. r=firefox-style-system-reviewers,emilio
https://hg.mozilla.org/integration/autoland/rev/e07b07b08958
Part 7 - Fast-reject with ancestor hashes for @scope.
r=firefox-style-system-reviewers,emilio
Perfherder has detected a talos performance change from push e07b07b08958af7d59d7fbc50699d24cd6755c25.
Improvements:
Ratio | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|
10% | perf_reftest_singletons attr-selector-1.html | linux1804-64-shippable-qr | e10s fission stylo webrender | 168.08 -> 152.03 |
8% | perf_reftest_singletons attr-selector-1.html | linux1804-64-shippable-qr | e10s fission stylo webrender | 166.95 -> 153.13 |
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.
You can run these tests on try with ./mach try perf --alert 608
For more information on performance sheriffing please see our FAQ.
Updated•8 months ago
|
Comment 14•7 months ago
|
||
Associated Pull Requests
Updated•7 months ago
|
Description
•