sebastiaanvisser / clay

A CSS preprocessor as embedded Haskell.
Other
357 stars 72 forks source link

Border module includes invalid outline properties #223

Open nsaunders opened 2 years ago

nsaunders commented 2 years ago

MDN's border-style documentation, as an example, shows "constituent properties" that allow a unique border to be applied to each side of an element. However, this does not seem to be the case for outlines: Notice, for example, how outline-style has no constituent properties listed. Indeed, my own testing suggests that outline properties can't be assigned to each side of an element independently: For example, outline-top-color yields an "unsupported property" warning in Safari:

image
turion commented 2 years ago

Ok, so outlineTopColor and similar functions should be removed?

nsaunders commented 2 years ago

@turion that is correct. These are the only outline functions that produce valid CSS:

So these should be removed: