W3C home > Mailing lists > Public > www-style@w3.org > April 2015

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

From: Florian Rivoal <florian@rivoal.net>
Date: Wed, 22 Apr 2015 16:42:28 +0200
Message-Id: <E4496459-DEC7-44F6-825E-9973ED080CAE@rivoal.net>
To: www-style list <www-style@w3.org>
css-cascade-4 defines "default" as a value that is valid on every property.
http://dev.w3.org/csswg/css-cascade-4/#valdef-all-default

css3-ui defines "default" as a value of the cursor property.
http://dev.w3.org/csswg/css-ui/#propdef-cursor

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC