-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CSS @apply not working when parent has same component as sibling #4410
Comments
Known workaround:Add the same CSS property to the component that was first introduced in the DOM. (see comment in the jsbin example) |
Can reproduce without Polymer, so this is probably a ShadyCSS bug: http://jsbin.com/medaday/edit?html,output |
This issue was moved to webcomponents/shadycss#69 |
I think this should be reopened here. I'm unable to reproduce it directly in shadycss, can anyone else get it to fail there? Failing polymer codepen: |
@azakus is it possible to write a unit test against shadycss that fails as per your example? It seemed to work for me, but it's possible I set it up wrong. I might get chance to have another crack at it over the weekend. |
Per findings in webcomponents/shadycss#69 (comment) and webcomponents/shadycss#69 (comment), reopening this issue and closing webcomponents/shadycss#69 |
Updated JSBin with master branches: http://jsbin.com/tajusit/edit?html,output, seems to work correctly. However, I'm going to leave this open for a bit to make this a test in Polymer so we don't regress accidentally |
Description
@apply
'ed CSS property from native CSS mixin is not getting applied on component, when the component has been used previously in the DOM without the CSS property.Live Demo
http://jsbin.com/hiceguvoca/1/edit?html,console,output
Steps to Reproduce
my-element
my-element
to document.bodywrapper-element
that also hasmy-element
inside it.wrapper-element
to body aftermy-element
@apply
a css variable called--css-variable
inmy-element
--css-variable
block inside thewrapper-element
Expected Results
The CSS property should be applied to the
my-element
component insidewrapper-element
Actual Results
The CSS property is not applied.
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: