New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert CSS2 to Bikeshed #5196
Convert CSS2 to Bikeshed #5196
Commits on Jun 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 5c408d1 - Browse repository at this point
Copy the full SHA 5c408d1View commit details -
[CSS2] Add way more dfn elements
This primarily marks up many (but not all) property value definitions as being property values for their respective properties. The choice is mostly those keywords that exist in other specs; this should be further completed in due course.
Configuration menu - View commit details
-
Copy full SHA for d3c598b - Browse repository at this point
Copy the full SHA d3c598bView commit details -
[CSS2] lowercase all HTML tag names
This is in preparation for conversion to Bikeshed; both because the forthcoming conversion relies on parse/serialize cycles (using html5lib, which doesn't support preserving case) and because Bikeshed itself relies on tags when they appear in BSMD being lowercase.
Configuration menu - View commit details
-
Copy full SHA for 646acaf - Browse repository at this point
Copy the full SHA 646acafView commit details -
[CSS2] eliminate new line characters within HTML tags
This is done for the same reason as the previous commit (both Bikeshed conversion tooling does this, so this limits the diff in that single commit making blame more workable, and because Bikeshed does not handle tags split across multiple lines). Note that this doesn't deal with new lines within attributes yet.
Configuration menu - View commit details
-
Copy full SHA for faf30d8 - Browse repository at this point
Copy the full SHA faf30d8View commit details -
[CSS2] put source files through a html5lib parse/serialize cycle
This is, similar to parent commits, prior to the Bikeshed conversion to make more easily ignored from blame (plus also is easier to review). Most of this just gets rid of ambiguous ampersands and makes quoting of elements consistent (the choice of quotes is done to minimize the size of this diff).
Configuration menu - View commit details
-
Copy full SHA for df45ec4 - Browse repository at this point
Copy the full SHA df45ec4View commit details -
[CSS2] Concatenate all source files into Overview.bs
Plus get rid of all the old source files (to git can correctly notice the lines have moved) as well as the old build system and the committed output.
Configuration menu - View commit details
-
Copy full SHA for 82079cb - Browse repository at this point
Copy the full SHA 82079cbView commit details -
[CSS2] Redo the previous concat based on parsed input
This doesn't actually produce a particularly large diff, contrary to what one might expect. This primarily just gets rid of head elements. The algorithm used here is pretty simple: 1. Start with cover.src, then for each chapter/appendix: 2. Append the contents of the body element to the existing body 3. If the style element in the head has content not yet seen, add it to the existing head.
Configuration menu - View commit details
-
Copy full SHA for 31c2acd - Browse repository at this point
Copy the full SHA 31c2acdView commit details -
Configuration menu - View commit details
-
Copy full SHA for e1a0c20 - Browse repository at this point
Copy the full SHA e1a0c20View commit details -
[CSS2] include property definitions
These BSMD blocks were generated with a modified version of the old propdef generator, but should be trivially correct.
Configuration menu - View commit details
-
Copy full SHA for aa3e3af - Browse repository at this point
Copy the full SHA aa3e3afView commit details -
Configuration menu - View commit details
-
Copy full SHA for a942a25 - Browse repository at this point
Copy the full SHA a942a25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0713ae2 - Browse repository at this point
Copy the full SHA 0713ae2View commit details -
The q0 anchors date back to the original 2011 publication of CSS 2.1 and are all applied to the top-level headings within each page. As such, they're essentially unused (because everywhere just links to the top of the page). Additionally, the q0 anchors were removed when CSS 2.1 was edited in place in 2016 (see w3c#2551).
Configuration menu - View commit details
-
Copy full SHA for 38df2ef - Browse repository at this point
Copy the full SHA 38df2efView commit details -
[CSS2] Move anchors to the header element itself
The old build system always took the first anchor within the header as the header's anchor, but Bikeshed (very reasonably) expects the anchor to be on the header itself. Note in many cases we also provide "legacy" anchors as spans within the header; these are unchanged.
Configuration menu - View commit details
-
Copy full SHA for c574d8d - Browse repository at this point
Copy the full SHA c574d8dView commit details -
[CSS2] remove strong outwith/within dfn
In plenty of places we have strong directly nested within dfn or dfn directly nested within strong; in both cases this is unnecessary as the goal here is purely presentational and the current TR stylesheet boldens all dfns anyawy.
Configuration menu - View commit details
-
Copy full SHA for 2a52adf - Browse repository at this point
Copy the full SHA 2a52adfView commit details -
[CSS2] turn index definitions into dfns
The old build system generated its index through specific markup rather than using all dfns. In reality, most of the things marked up for the index are actually generally useful dfns (this is unsurprising, given the index contains things people might want to lookup!).
Configuration menu - View commit details
-
Copy full SHA for 72942e2 - Browse repository at this point
Copy the full SHA 72942e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00311a2 - Browse repository at this point
Copy the full SHA 00311a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02882a8 - Browse repository at this point
Copy the full SHA 02882a8View commit details -
[CSS2] further remove strong adjacent to dfn
This is needed as moving the IDs got rid fo a number of spans, therefore making new strong elements now adjacent.
Configuration menu - View commit details
-
Copy full SHA for 2ae086c - Browse repository at this point
Copy the full SHA 2ae086cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03a2805 - Browse repository at this point
Copy the full SHA 03a2805View commit details -
Configuration menu - View commit details
-
Copy full SHA for e94a3fc - Browse repository at this point
Copy the full SHA e94a3fcView commit details -
[CSS2] make "instances" of terms be autolinks
Amusingly, some of the index instances are never actually defined.
Configuration menu - View commit details
-
Copy full SHA for 0139e1d - Browse repository at this point
Copy the full SHA 0139e1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88cacbd - Browse repository at this point
Copy the full SHA 88cacbdView commit details -
[CSS2] replace <pre><code class=css> with <pre class=lang-css>
The former produces quotes around the element in the BS output; the latter enables CSS syntax highlighting. The latter seems like the better behaviour.
Configuration menu - View commit details
-
Copy full SHA for 981561b - Browse repository at this point
Copy the full SHA 981561bView commit details -
[CSS2] add lang-xml to some pre elements
This just adds lang-xml to pre elements with no lang-* class whose contents can be parsed as XML, as it is unlikely for arbitrary content to parse as XML (potentially some of this is intended to be HTML, but highlighting it as if it is XML is unlikely to be harmful).
Configuration menu - View commit details
-
Copy full SHA for 45be582 - Browse repository at this point
Copy the full SHA 45be582View commit details -
[CSS2] add lang-css to some pre/code elements
This, similar to the previous commit, adds lang-css when there is no lang-* class already and the content parses as CSS without any parse errors. As CSS is more permissive, the automated script added slightly too much here and a little was manually reverted.
Configuration menu - View commit details
-
Copy full SHA for 751db98 - Browse repository at this point
Copy the full SHA 751db98View commit details -
[CSS2] Remove new lines from attribute values
This happens to only be in img[alt]
Configuration menu - View commit details
-
Copy full SHA for c8c1500 - Browse repository at this point
Copy the full SHA c8c1500View commit details -
[CSS2] add ids to all images for compatibility
The old built system added an ID to all imgs, so we should to.
Configuration menu - View commit details
-
Copy full SHA for 0d7685b - Browse repository at this point
Copy the full SHA 0d7685bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0206605 - Browse repository at this point
Copy the full SHA 0206605View commit details -
[CSS2] Change the spec reference syntax to the BSMD one
The old CSS2 build system used [[FOO]] for a normative reference and [[-FOO]] for a non-normative one. BSMD uses [[!FOO]] for a normative reference and [[FOO] for a non-normative one.
Configuration menu - View commit details
-
Copy full SHA for af3422f - Browse repository at this point
Copy the full SHA af3422fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57d9237 - Browse repository at this point
Copy the full SHA 57d9237View commit details -
Configuration menu - View commit details
-
Copy full SHA for 050261d - Browse repository at this point
Copy the full SHA 050261dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef47f7e - Browse repository at this point
Copy the full SHA ef47f7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e90f531 - Browse repository at this point
Copy the full SHA e90f531View commit details -
[CSS2] stop requiring some old IDs
This drops IDs for: index xrefs (x[n]), bits of generated content (annoying-warning, minitoc, W3C-doctype), refs (ref-*), and the index sections (index-[A]). Only the first might be referenced at all, and unfortunately they are not unique across all pages unlike all other anchors.
Configuration menu - View commit details
-
Copy full SHA for 7ca8b4c - Browse repository at this point
Copy the full SHA 7ca8b4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4c2332 - Browse repository at this point
Copy the full SHA b4c2332View commit details -
Configuration menu - View commit details
-
Copy full SHA for a73831c - Browse repository at this point
Copy the full SHA a73831cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a7d595 - Browse repository at this point
Copy the full SHA 4a7d595View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3c9bc0 - Browse repository at this point
Copy the full SHA c3c9bc0View commit details