Nicholas Shanks
2014-10-28 16:58:52 UTC
Hi guys.
Does anyone know of a way to change the foreground colour of the ::-webkit-search-decoration, ::-webkit-search-cancel-button, ::-webkit-search-results-button, or ::-webkit-search-results-decoration pseudo-elements?
Specifically, I want to change the foreground colour to white when the element is not focused, and red when it is, so that it contrasts with the background colour and matches the text colour.
:active, :focus { -webkit-search-field-furniture-foreground-color: darkredish }
:valid:hover { -webkit-search-field-furniture-foreground-color: white }
Also, is there a way to make the focus outline ends semi-circular?
I tried -webkit-outline-radius and outline-radius in both Chrome 38 and Safari 7.1 without joy.
Do I need to implement it myself?
Does anyone know of a way to change the foreground colour of the ::-webkit-search-decoration, ::-webkit-search-cancel-button, ::-webkit-search-results-button, or ::-webkit-search-results-decoration pseudo-elements?
Specifically, I want to change the foreground colour to white when the element is not focused, and red when it is, so that it contrasts with the background colour and matches the text colour.
:active, :focus { -webkit-search-field-furniture-foreground-color: darkredish }
:valid:hover { -webkit-search-field-furniture-foreground-color: white }
Also, is there a way to make the focus outline ends semi-circular?
I tried -webkit-outline-radius and outline-radius in both Chrome 38 and Safari 7.1 without joy.
Do I need to implement it myself?
--
Nicholas.
Nicholas.