From 4b087ee9e8d9e00247be4d46488ebe7c1354611b Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Thu, 11 Mar 2021 16:59:52 -0500 Subject: [PATCH] fix external image flaws in Web/Web_Components/Using_shadow_DOM --- .../using_shadow_dom/dom-screenshot.png | Bin 0 -> 14878 bytes .../web_components/using_shadow_dom/index.html | 4 ++-- .../using_shadow_dom/shadowdom.svg | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 files/en-us/web/web_components/using_shadow_dom/dom-screenshot.png create mode 100644 files/en-us/web/web_components/using_shadow_dom/shadowdom.svg diff --git a/files/en-us/web/web_components/using_shadow_dom/dom-screenshot.png b/files/en-us/web/web_components/using_shadow_dom/dom-screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..bab9f5796eb40fb6bcdbeabdf7321b42366c5310 GIT binary patch literal 14878 zcmYLQWk6fa(oSiC0;N!(xD}^RDDGa|in~K7?(XjH1b4R}#kF{F*W#{0i{zv4z3+GP zBb%8sJA39lGrO}Vvti%m#8Hv)kpTbzs-(m>MF0Q}0sy>kB=Hm2AS+Thp&b z6BSrthdr?Fb65a}KNNahFa*o>_kDVv4v+~vK0O^QP0wzeh5fmG+V8o%{R4Ymc!0r@ zW}gG{Cq^n@xs&JdX=&MWx8L$%3x%*!89-+OY`O~;UpKdZ{R}&YRoB4^HDIGB&w(+p zH5lxCyl^zjpB4m*Ch`TmW~`ZmHS`WYT%SQ+^!`^kKy^t9Bnd_r z0Xw^eO)SD1vS1CC0DBLZRSWEXHXGy^`15DIJ|e(00XB1Zo1K;J-3_~afOU1iA~I?m z*&9s%7n)J1ndccF++Fd;T3C6?eJR_-g=M;S0;Cs_7ns zsg%K%CYxi>0e+E*0QaBzWlQxdP;Mhwn$(Lk*e_Ms2Wh~z*Onwp7K1>g*5C~pX;?ye z=h;3C-~u~b9kMNk&Hbtd_yn@LRMh8XhW8$Yluk3sz?wQ>05ce<3I+gHJEFiX7wJm5 zht=8oL1O4=@?Zw+FsG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qy7733OKwP>ObZkn#!N69>S&X$A*jVPNGc25RVWcV^?@%5q89Edy_<5ar(n0*H; z{akHs*fO!E9+9iX4Aad;{>&rUce)Rv^7WU7n^?*j;oN zA12<6KSmz}Q{5l&%=YQI>6!X{sEBT?TH($T{lI%d zVNSsz3i^=_8@KF`Mb;R2$eq7$;E%6;^WzoBCN3{NK0Y>Lc({_@&FOu`OHJ@g9l{3J ze`XGaU^_j@1wKuaGu= zzhAE4O4mlPq?{rc_!BW<3l0^_kP3Kkk3)ZdS_8q)A9^T&)UICb+SPH9?O8aA@xSOK zYW%Cy{8q)Ck!iex-*Z^3P2u-?tNV_YTHUuFoQtD6@+Z&bcj@o6pTvuqBgazEpQpNZ zVtizn8Dd5`Pt$QdzLbX3#O-pWj6XkPax=>l+X?oq@HyRVc0pq>eKucgF*+?`OXt1F zwYP@W88LuvdE}W+moskSV1VgkDT~NkT{EXPAs@_bg;b7``JRP5z zGwMG2?|xvLYRi~%8M*)DplV4f>zGIAu_|)=;UDGsF0Cg&E<38eEhTMEpwWC;L zoFhOYj>!=IBDKrB%+sUFkpRr`SC+(Drm~aUUeuC(RhgW5n?^zJ8Sn}PuSHo-$dgJwmM;>MPlh_lWQB}@k!FmJ6BF#mJZb*8&s*ks*f8r zELfYv+jhzFyCA_cTUW;ImJW;wI&N*R^{AS6zb`FcM~R)vOnq_vVEG zg!Z(v+(hFiCAPSneSWO&0WuSdGp%!;({kXzN^9Iam;Rn``Og`M)dr1aPg;QR#IAM} zv=H#NyHR879~x-&m*fLAjHSSl8e4Xp+$#bC!y&JJfEeKg-!4_ybzlK<7uYTSk~B*d zW`D^=_VwMrod^Dx{`@=8ODk9oN#%v_834*;!EG3^P|5q9*Wx7<3;tY)98%I>S$_E@ zCG6g&MQ7K)#Cl7e$>fF{i2AojiBHigh-level view

This fragment produces the following DOM structure:

-

+

Shadow DOM allows hidden DOM trees to be attached to elements in the regular DOM tree — this shadow DOM tree starts with a shadow root, underneath which can be attached to any elements you want, in the same way as the normal DOM.

-

SVG version of the diagram showing the interaction of document, shadow root and shadow host.

+

SVG version of the diagram showing the interaction of document, shadow root and shadow host.

There are some bits of shadow DOM terminology to be aware of:

diff --git a/files/en-us/web/web_components/using_shadow_dom/shadowdom.svg b/files/en-us/web/web_components/using_shadow_dom/shadowdom.svg new file mode 100644 index 000000000000000..780cd22f68be842 --- /dev/null +++ b/files/en-us/web/web_components/using_shadow_dom/shadowdom.svg @@ -0,0 +1 @@ +shadowrootdocumentshadowhostDocument TreeShadow BoundaryShadow TreedocumentshadowhostFlattened Tree (for rendering)ShadowTree \ No newline at end of file