Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Incorrect auto-complete values for the font-variant CSS property #4580

Closed
arnog opened this issue Jul 26, 2013 · 15 comments
Closed

Incorrect auto-complete values for the font-variant CSS property #4580

arnog opened this issue Jul 26, 2013 · 15 comments

Comments

@arnog
Copy link
Contributor

arnog commented Jul 26, 2013

The auto-complete for the font-variant CSS property is incorrect. We offer "none" and "normal", while the valid values for this property are "small-caps", "normal" and "inherit".

@jasonsanjose
Copy link
Member

Reviewed. Low priority starter bug. See src/extensions/default/CSSCodeHints/CSSProperties.json.

@tshaddix
Copy link

Would it be this simple? (line 102)

Before:

"font-variant":                {"values": ["normal", "none"]},

After:

"font-variant":                {"values": ["small-caps", "normal", "inherit"]},

@RaymondLim
Copy link
Contributor

@tshaddix
Yes, it is. But if you can take this chance to review the accuracy of other property values, that will be great.

@tshaddix
Copy link

@RaymondLim
Sounds good. I'll take a look at the other values as well.

@tshaddix
Copy link

I noticed some properties have "structure" helpers for more complex values, such as background-image which has the helper linear-gradient(). Would it be appropriate to do the same with the different ways to define color values?

e.g.

    "color": {"values": ["currentColor", "transparent", "inherit", "hsl()", "hsla()", "rgb()", "rgba()"]},

@RaymondLim
Copy link
Contributor

@tshaddix
Sorry that I didn't notice your question earlier. I would say don't bother with those color formats as there are many properties that need those color formats and it is more efficient in auto generating them from JS instead of maintaining them in JSON file.

@tshaddix
Copy link

@RaymondLim
No problem. It's definitely more effective the centralize the generation rather than maintaining the color types for each property.

@tshaddix
Copy link

Had a lot of work come up lately, another "starter" should grab this bug. Simply look at css property specs and make sure json lines up.

@ghost
Copy link

ghost commented Sep 24, 2013

I would like to fix this bug and also look at other CSS properties.
Is there a list of properties that we used to populate src/extensions/default/CSSCodeHints/CSSProperties.json file?

I am planning to use data from https://developer.mozilla.org/en-US/docs/Web/CSS/Reference. Anyone has a better data source?

@ghost
Copy link

ghost commented Sep 24, 2013

So a little later I found out src/extensions/default/WebPlatformDocs/css.json which I think is the db right now.
But I am unable to locate the generator script for this db. Anyone?

@redmunds
Copy link
Contributor

@skant

Is there a list of properties that we used to populate src/extensions/default/CSSCodeHints/CSSProperties.json file?

That file is currently manually updated. Submit a pull request for any changes.

I found out src/extensions/default/WebPlatformDocs/css.json which I think is the db right now.

That is the data for Navigate > Quick Docs. That was a recently added feature, so we have not yet made the generator public.

@ghost
Copy link

ghost commented Sep 24, 2013

@redmunds
That generator could back feed css.json or you think CSSProperties.json is best maintained manually?

@adrocknaphobia
Copy link
Contributor

@skant Quick Docs (WebPlatformDocs/css.json) is parsed from http://docs.webplaform.org. It's a community wiki where anyone can contribute and edit the documentation. I'm not convinced it's structured enough to form the basis of code hinting.

@ghost
Copy link

ghost commented Sep 25, 2013

@adrocknaphobia In that case we need a better source to feed CSSProperties.json. Digging into source of Firebug, etc might help. Anyone knows a good source from the top of their head?

@jh3y
Copy link

jh3y commented Oct 9, 2013

I'd be interested to see where this goes. I think any of the browser dev tools are probably best to look at. I'll have a quick look around and see what I find.

@jheytompkins

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

No branches or pull requests

7 participants