diff --git a/reports/2022.html b/reports/2022.html index 3486164..273d2fc 100644 --- a/reports/2022.html +++ b/reports/2022.html @@ -159,10 +159,10 @@
---
+Provide a solution for deep cross-shadow root styling of web components without the forwarding needed using ::part or the granularity needed using CSS variables.
Summary or proposal based on current status; paragraph(s) and code.
+The original proposal suggested using a similar syntax as with shadow parts.
++ <x-button> + #shadow-root + <button theme="button"></button> + </x-button> ++
+ :root::theme(button) { ... }
+
+ Further discussions after ::theme was initially dropped from the spec have also suggested creating new media query types for theming for better readability and allowing for versioning.
+
+ @media (theme-name: vaadin) and (theme-version: 2.0) {
+ :is(vaadin-text-field, vaadin-select):dir(rtl)::part(input-field)::after {
+ transform-origin: 0% 0;
+ }
+ }
+
+
+ // registering the theme on the author side
+ this.attachShadow({ mode: 'open', theme: { name: 'vaadin', version: '2.0' }});
+
+ The media query solution wouldn't completely eliminate the need for the ::theme selector as it doesn't solve the issue with exporting shadow parts.
---
+