Open torgo opened 3 years ago
Thank you Daniel for raising this. FWIW, I see this as an issue with custom properties, not an issue with the guidance. The guidance is very sound and correct, we just need to make sure the platform can support it.
Ok thanks for the clarification Lea – I mostly wanted to create an issue so we could have an anchor to discuss at the future TAG meting call. Do you think we should make a note in the document to reflect the issue?
This issue is also relevant: https://github.com/w3c/webcomponents/issues/856 I opened this in csswg, in case we can solve it from CSS: https://github.com/w3c/csswg-drafts/issues/5624
Do you think we should make a note in the document to reflect the issue?
Yes.
Ok thanks for the clarification Lea – I mostly wanted to create an issue so we could have an anchor to discuss at the future TAG meeting call.
Now that I'm here, I'm wondering if we could pick this up in a breakout soon, or the F2F? I want to make sure this guidance can be followed by authors, otherwise we are setting them up for failure.
https://www.w3.org/2001/tag/doc/webcomponents-design-guidelines/
"Don’t use custom attributes for styling, like bgcolor. Instead use Custom Properties or CSS Shadow Parts."
Note that container queries allow for style queries too, so this guidance may be possible to follow in the near future (or at least more feasible for more cases).
From https://twitter.com/LeaVerou/status/1316353717688557571 from @leaverou: