Sentence:  As she a black silk cap on him began / To set, for <WSD>foil</WSD> of his milk-white to serve. 
Meaning of the word marked with <WSD> tags:  Anything that acts by contrast to emphasise the characteristics of something.