attr

Back to the index.

This value .

width: attr(data-size %,50%);
border: 1px solid;
padding: 5px;
box-sizing: border-box;
-moz-box-sizing: border-box;

10%

20%

30%

40%

(no data-size attribute; should default to 50%)

60%

70%

80%

90%