[css-cascade-4][css3-ui] naming collision: the "default" value

css-cascade-4 defines "default" as a value that is valid on every property.

css3-ui defines "default" as a value of the cursor property.

If you write "cursor: default", which one do you get? Hopefully the cursor specific meaning, but If you wanted the other one, how do you get it?

cursor: default has existed for many years, and every browser supports it, so I don't quite see how we could remove or rename it.

Which leaves us with a few options:
a - rename the global "default" into something else. "reset"?

b - decide it will be impossible to use the global "default" in the cursor property

c - create a special keyword ("css-default"? "global-default"? "reset"?) for the cursor property that gets you the behavior of the global default keyword.

c seems very hacky and confusing, but it gets the job done.

b is not so hacky, but still confusing, and it would be unfortunate to not have access the abilities of the global "default" keyword, especially for a property like cursor which is expected to be heavily used in the UA stylesheet.

a is kind of clean, except that "default" is a good name, and that it's been a reserved keyword (for example in http://dev.w3.org/csswg/css-values/#custom-idents) in case we wanted to introduce it, and alternative names have not been protected that way.

All options seem bad to me (though not necessarily equally bad). Any better idea?

 - Florian

Received on Wednesday, 22 April 2015 14:42:56 UTC