-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insufficient docs for interaction when mixing view encapsulation modes #40715
Comments
Status of the GuideThere is a guide on ViewEncapsulation here: https://angular.io/guide/view-encapsulation. Most of the details of Shadow DOM are outside of the scope of Angular and are provided by the spec and browser implementations. The guide links to https://developer.mozilla.org/en-US/docs/Web/Web_Components/Shadow_DOM to learn more about how Shadow DOM works in general. The guide also links to the browser support page for Shadow DOM: https://caniuse.com/shadowdomv1. In turn, this site links directly to the spec: https://www.w3.org/TR/shadow-dom/. The guide also includes the following
Some of these comments are no longer accurate as the majority of browsers now support Shadow DOM v1. But Emulated view encapsulation is still the default and recommended mode. Specific issuesIn Discord, you mentioned some specific issues with
Can you please provide a StackBlitz demo of this? Are you using |
Of course i'm talking about and using Thanks for all the links, but i'm pretty aware about the spec.
I would need some time for a stackblitz, but that would be another issue, wouldn't it? Also i think it would be a duplicate of #5059 (comment) |
If you look in the OP, you put
I need to explain this stuff for the documentation team and we also have a policy that we don't document things that are best documented elsewhere.
I think that our general feeling is that this is already done. However with the behavior you mentioned, I thought your point was that we may have missed something in the documentation. But we need to clearly spell that out and demonstrate it for the documentation team.
I think that a proposal to change the default view encapsulation mode is likely best covered in a separate issue. That said, IE11 does not support it and Angular still supports IE11. There are also some issues with Safari.
#5059 talks about That said, we need to sort out if your StackBlitz would demonstrate a documentation issue or a bug. It's not clear atm. It might just demonstrate why and how the documentation needs to be updated. |
Ok, thanks for clarification ! Didn't want to appear rude!
#5059 talks about Native or Shadow DOM v0 encapsulation, so I don't think that would be a duplicate
Same behaviour for ViewEncapsulation.ShadowDom got confirmed in the issue, I think.
Right. I believe the solution is what I wrote here #5059 (comment)
think that our general feeling is that this is already done. However with the behavior your mentioned, I thought your point was that we may have missed something in the documentation. But we need to clearly spell that out and demonstrate it for the documentation team.
I thought it would be on purpose, which should be documented. But apparently it's a bug...
Confusing
Am Fr., 5. Feb. 2021 um 23:05 Uhr schrieb Michael Prentice <
notifications@github.com>:
… i'm talking about and using ViewEncapsulation.ShadowDom. I'm not
mentioning something else in the issue?
If you look in the OP, you put ViewEncapsulation.Shadowdom, I just wanted
to ensure this wasn't a typo issue.
Thanks for all the links, but i'm pretty aware about the spec.
I need to explain this stuff for the documentation team and we also have a
policy that we don't document things that are best documented elsewhere.
I think the angular specifics to its own implementation of view
encapsulation should be documented, that's why i raised this issue.
I think that our general feeling is that this is already done. However
with the behavior your mentioned, I thought your point was that we may have
missed something in the documentation. But we need to clearly spell that
out and demonstrate it for the documentation team.
But Emulated view encapsulation is still the default and recommended mode.
Why is that though, as shadow dom is a well supported standard by now?
I think that a proposal to change the default view encapsulation mode is
likely best covered in a separate issue. That said, IE11 does not support
it and Angular still supports IE11. There are also some issues with Safari.
I would need some time for a stackblitz, but that would be another issue,
wouldn't it? Also i think it would be a duplicate of #5059 (comment)
<#5059 (comment)>
#5059 <#5059> talks about Native
or Shadow DOM v0 encapsulation, so I don't think that would be a duplicate.
That said, we need to sort out if your StackBlitz would demonstrate a
documentation issue or a bug. It's not clear atm. It might just demonstrate
why and how the documentation needs to be updated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#40715 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACGFQIB4UJGZ75YMUTEXWTS5RTRRANCNFSM4XEMMAZQ>
.
--
Johannes Busch
Heimersfeld 83
46244 Bottrop
Tel: 02045 855 08 07
|
Looking at this, it seems like we are in fact missing docs that explain how components with different view encapsulation modes will interact. |
This commit adds information to the view encapsulation guide that describes the styling interactions between components that use differing view encapsulation modes. Closes angular#40715
This commit adds information to the view encapsulation guide that describes the styling interactions between components that use differing view encapsulation modes. Closes angular#40715
This commit adds information to the view encapsulation guide that describes the styling interactions between components that use differing view encapsulation modes. Closes angular#40715
This commit adds information to the view encapsulation guide that describes the styling interactions between components that use differing view encapsulation modes. Closes angular#40715
This commit adds information to the view encapsulation guide that describes the styling interactions between components that use differing view encapsulation modes. Closes angular#40715
This commit adds information to the view encapsulation guide that describes the styling interactions between components that use differing view encapsulation modes. Closes angular#40715
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. |
angular#42397) This commit adds information to the view encapsulation guide that describes the styling interactions between components that use differing view encapsulation modes. Closes angular#40715 PR Close angular#42397
📚 Docs or angular.io bug report
Description
Almost no explanation on how
ViewEncapsulation.Shadowdom
worksExpected vs Actual Behavior**
Detailed documentation for
ViewEncapsulation.Shadowdom
should be provided, since it is a core feature of Angular.The text was updated successfully, but these errors were encountered: