Re: Parametric CSS

Huge thanks. Exactly what I was looking for. I truly hope this picks up some traction, with the advent of component-based front-end development.


On Mar 29, 2017, at 11:52, Oriol _ <oriol-bugzilla@hotmail.com<mailto:oriol-bugzilla@hotmail.com>> wrote:


I think this is supposed to work:

.progress-bar-completion {
  width: attr(completion-percentage %);
}


But it seems browser are not interested in implementing it.

See https://drafts.csswg.org/css-values-3/#attr-notation

--Oriol

Received on Wednesday, 29 March 2017 16:28:08 UTC