Skip to content

Commit

Permalink
feat(macros): rewrite CSSSyntax macro (#4656)
Browse files Browse the repository at this point in the history
* New CSSSyntax macro

* Highlight properties

* Call property class a property class

* Simplify CSS class stuff

* Link to externally described types

* Linkify brackets and combinators

* Use browser-compat to figure out which spec to get the data from

* Random updates

* Resolve syntax only using webref

* Fix links when value includes range

* Require new version of webref/css

* Cleanup, reorg, comments

* Don't use angled brackets for the property name

* Remove cssesc which had snuck back in

* test: check flaws with toEqual()

If we encounter flaws unexpectedly, this surfaces it in the output.

* fix(macros/CSSSyntax): use shim for String.prototype.replaceAll

* Update kumascript/macros/CSSSyntax.ejs

Co-authored-by: Claas Augner <github@caugner.de>

* Update kumascript/macros/CSSSyntax.ejs

Co-authored-by: Claas Augner <github@caugner.de>

* Update kumascript/macros/CSSSyntax.ejs

Co-authored-by: Claas Augner <github@caugner.de>

* Update kumascript/macros/CSSSyntax.ejs

Co-authored-by: Claas Augner <github@caugner.de>

* Update kumascript/macros/CSSSyntax.ejs

Co-authored-by: Claas Augner <github@caugner.de>

* Update kumascript/macros/CSSSyntax.ejs

Co-authored-by: Claas Augner <github@caugner.de>

* Update kumascript/macros/CSSSyntax.ejs

Co-authored-by: Claas Augner <github@caugner.de>

* Update kumascript/macros/CSSSyntax.ejs

Co-authored-by: Claas Augner <github@caugner.de>

* Review comments

* Use mdn.localString for human-readable strings

* Remove replaceAll polyfill

* Actually concaenate newValues onto values

* updated yarn.lock

Co-authored-by: Claas Augner <caugner@mozilla.com>
Co-authored-by: Claas Augner <github@caugner.de>
  • Loading branch information
3 people committed Jun 23, 2022
1 parent 58d8481 commit d6c9992
Show file tree
Hide file tree
Showing 5 changed files with 327 additions and 415 deletions.

0 comments on commit d6c9992

Please sign in to comment.