1

I'm assuming that a browser, internally, has a method to create it's default color format from user css file input, that it can interpret. If I write the following css rules, I think they will point to the same format.

<style>
.style {
    color: red;
}
.style {
    color: #f00;
}
.style {
    color: #F00;
}
.style {
    color: rgb(255,0,0);
}
</style>

will result in

<style>
.style {
    color: #FF0000;
}
</style>

The question might be a little off, but shouldn't the browser render a webpage faster if the color style is it's default format?

5

1 Answer 1

3

Here are the results including color names, short hex, hex, rgb, rgba, hsl, and hsla. You can run the test yourself here.

Color Performance Test Results

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.