I've read that HTML "boolean attributes" such as readonly, disabled, required (etc.) can either be blank or have a value of their name. And people seem to be using both styles (see How should boolean attributes be written?)...
So it seems that the best way to accommodate this is to write your CSS like:
input[readonly], input[readonly="readonly"] {
}
(https://stackoverflow.com/a/19644231/1766230)
But is there a more concise way to write this? Maybe using some CSS3 attribute selector magic? I've tried input[readonly*=""]
, but without luck.