Skip to content
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

Add style rules #1036

Merged
merged 5 commits into from
Jun 15, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,40 @@ is.
End tags must be omitted when possible and attribute values must not be quoted (if necessary, use
double quotes).

Place one new line between paragraphs (including list elements). Place two or more new lines before
yutakahirano marked this conversation as resolved.
Show resolved Hide resolved
headings (e.g., `<h3>`). This doesn't apply when a nested heading follows the parent heading.
yutakahirano marked this conversation as resolved.
Show resolved Hide resolved

```html
<ul>
<li><p>Do not place a new line above.

<li><p>Place a new line above.
</ul>

<p>Place a new line above.


<h3>Place two or more new lines above.</h3>

<h4>Placing one new line is OK here.</h4>


<h4>Place two or more new lines above.</h4>
```

Use camelCase for variable names. On the other hand, it is OK to use spaced names for defined
yutakahirano marked this conversation as resolved.
Show resolved Hide resolved
names (properties, algorithms, etc).


```html
<p>A <a for=/>request</a> has an associated
<dfn export for=request id=concept-request-redirect-mode>redirect mode</dfn>,...

...
<p>Let <var>redirectMode</var> be <var>request</var>'s <a for=request>redirect mode</a>.
...
```

## Merge policy

If you can commit to this repository, see the
Expand Down