Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

on style cascading #7

Open
thien-do opened this issue Aug 28, 2019 · 0 comments
Open

on style cascading #7

thien-do opened this issue Aug 28, 2019 · 0 comments

Comments

@thien-do
Copy link
Contributor

Can you guess what's the color of this without looking at browser:

<div className="bg-red bg-blue" />

It depends on CSS's definition order, which is not guaranteed by Tailwind (and that's a good thing).

What should be done is to be sure one type of attribute can only be set at most once. In other words, use JS or whatever to ensure there is only one "bg-foo" at the final result

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant