1.

Which of the following function flips an element’s colors, for use by the filter property?(a) image()(b) flip()(c) invert()(d) contrast()I have been asked this question at a job interview.I'm obligated to ask this question of CSS Functions topic in section CSS Fundamentals, Colors and Styling of CSS

Answer»

Right answer is (c) invert()

EASIEST explanation: A decimal value between 0 and 1 or percentage up to 100% CONTROLS the EXTENT of the color-negative effect, with 0.5 or 50% producing gray.



Discussion

No Comment Found

Related InterviewSolutions