Repository navigation
Conversation
|
It might have been decided somewhere else but I'm curious about the naming. |
|
I felt that |
|
Wouldn't it be possible instead to only keep |
|
Shadow DOM v0 was an experimental non-finalized standard with limited browser support. Every browser that supported it supports v1 with the exception of old Android browsers. It should be deprecated and removed from Angular. Supporting both of them seamlessly would be difficult at best. For example if a developer wanted write a component that used slots and they wrote it in v0 they would have this Angular would have to take that template detect that it's being rendered int v1 mode and convert it to |
|
My personal preference would be to just replace v0 with v1. Especially since v0 was experimental with limited browser support that was an opt-in feature. That feels to aggressive for Angular though. Hence this PR creates it as a new code path. Another route would be after v0 is removed, deprecate the |
|
Alright, I'm convinced. Do you think it would be a good idea to deprecate the current |
|
I'd be 👍 with renaming |
|
@skreborn ... if we take the fact that because of actual browsers possibilities ... using of current |
|
This issue with the proposed solutions is breaking changes. |
modern for shadow dom v1 supportshadowdom for shadow dom v1 support
|
Renamed |
|
Hopefully the spec won't introduce any breaking changes down the line from here on out. If it does, we can still go on with |
|
Is there anything else I can do to move this along or just wait for a core member to review it? |
|
Some thoughts (thanks for looking at this @abraham!)
|
|
@robwormald I've updated the casing. The other three points sounded like things to think about but not direct actionable items. |
|
@robwormald Is there a reason that this solution which was in initial |
|
Hello? Don't want to hassle you. Sure you're busy. But this PR has some merge conflicts that you probably ought to resolve. |
|
I'd be happy to fix up merge issues if there is some indication that my time won't be wasted. |
|
what is the status of this? Custom elements with safari requires attachShadow support... |
|
Is there any update for this pull request? |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #7856
What is the new behavior?
ViewEncapsulation.ShadowDOMwill enable component encapsulation using Shadow DOM V1 instead of the currentNativemode that uses Shadow DOM v0. The main changes mean usingattachShadowinstead ofcreateShadowRootand using<slot></slot>instead of<content></content>.Does this PR introduce a breaking change?
Other information
The tests are failing because chromedriver is using an old version of Chrome that doesn't support Shadow DOM v1. Either ChromeDriver will have to be updated, the tests will have to be polyfilled, or something else.
ViewEncapsulation.Nativeshould also be deprecated. I'd be happy to work on that with some guidance after all the issues with this PR are worked out.