Closed
Bug 1494918
Opened 6 years ago
Closed 6 years ago
FlattenAssignedNodes should check that slots are in shadow root
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: smaug, Assigned: smaug)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
1.43 KB,
patch
|
edgar
:
review+
|
Details | Diff | Splinter Review |
4.56 KB,
text/plain
|
Details |
No description provided.
Updated•6 years ago
|
Priority: -- → P2
Assignee | ||
Comment 1•6 years ago
|
||
this is to follow the spec and fixing the difference with other implementation (this issue is coming from bug 1494609).
See 5.1. in
https://dom.spec.whatwg.org/#find-flattened-slotables
Currently we're missing 'whose root is a shadow root'
Attachment #9012855 -
Flags: review?(echen)
Updated•6 years ago
|
Attachment #9012855 -
Flags: review?(echen) → review+
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/31863507b670
FlattenAssignedNodes should check that slots are in shadow root , r=edgar
Comment 3•6 years ago
|
||
Backed out for wpt failures on slots-fallback-in-document.html.
Backout link: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=testfailed,busted,exception,runnable&classifiedState=unclassified&revision=6237c17e8ac6e5a829f336e1c0b2dd5cfe985a4b
Push link: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=testfailed,busted,exception,runnable&classifiedState=unclassified&revision=6237c17e8ac6e5a829f336e1c0b2dd5cfe985a4b
Log link: https://treeherder.mozilla.org/logviewer.html#?job_id=202657931&repo=mozilla-inbound&lineNumber=20182
Flags: needinfo?(bugs)
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/13297 for changes under testing/web-platform/tests
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e6ec31f7a72b
FlattenAssignedNodes should check that slots are in shadow root , r=edgar
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 8•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Upstream PR was closed without merging
Comment 10•6 years ago
|
||
You might want to add these an extra testcase to verify that the ::slotted(*) CSS rules are applied according to spec as a result of this fix. If it doesn't, then it will be a bug. I've added the test and analysis as a text file.
In Firefox 62 the test attached will produce the wrong result according to the spec in #3,#6,#9. With the fix the behavior should be the same as in Chrome.
Links to the test in codepen is here too:
slotted(*){...} https://codepen.io/orstavik/pen/pxJLEG?editors=1000
If someone is interested, I made two more tests to illustrate how content in a slot gets styled:
* {...} https://codepen.io/orstavik/pen/VELXLm?editors=1000
:host {...} https://codepen.io/orstavik/pen/pxJLyG?editors=1000
Can anyone also add a link to a discussion as to why the spec chose to flatten slots in this manner and treat slot children as they do?
Comment 11•6 years ago
|
||
Can't merge web-platform-tests PR due to failing upstream checks:
Github PR https://github.com/web-platform-tests/wpt/pull/13297
* Taskcluster (pull_request) (https://tools.taskcluster.net/task-group-inspector/#/K9fg5x9TRuac8p-JMdi-rQ)
Upstream PR merged
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•