Implement .style getters/setters and refactor