shadycss
shadycss copied to clipboard
_From @vimalraj-a on June 28, 2016 17:52_ ### Description ``` :root { --my-app-color: red; --my-app-input: { --paper-input-container-label-focus: { color: var(--my-app-color); }; }; } ``` **In my element style:** ``` paper-input...
ShadyCSS is generating incorrect CSS selectors for `:host-context()`. ## Setup See https://codepen.io/CITguy/pen/OwZoXR/ *ShadowDOM for ``* ```html :host-context(.foobar) { background-color: lime; } ``` *Light DOM, consuming ``* ```html Should have transparent...
border properties are not transposed as expected. `border-style`, `border-width` or `border-color` can be themselves shorthand properties for all its orientation properties but it won't be recognized when setting it by...
I figured out how to use ShadyCSS API to polyfill shadow styles for native elements, and to apply different roots for the same tag name: generate a unique id for...
With the new sync scoping API, there can be cases where a library (like ShadyDOM), misses a DOM mutation, such as with `range.insertNode()` and `table.addRow()`. This `fixSubtreeScope` API could be...
In https://github.com/Polymer/lit-html/issues/655, there was a discussion about timing constraints (elements should shim custom properties in tree order). That doesn't seem to be mentioned in the official usage sample: https://github.com/webcomponents/shadycss#usage
The `:dir()` transform happens after selectors are split into "simple" selectors, without ancestor/descendant/sibling combinators. However, the output of the `:dir()` transform creates two selectors, and both must contain the whole...
External copy of [b/123235013](http://b/123235013)
Using `adoptedStyleSheets` is a new way to style Shadow DOM being [added to the platform](https://wicg.github.io/construct-stylesheets/index.html). ShadyCSS should support this in some way. Instead of putting `style` elements into a `shadowRoot`,...
In order for shimmed custom properties to work correctly, (1) an element must have prepared its styles via `prepareTemplateStyles`, (2) must be in the DOM tree when it calls `styleElement`...