Skip to content

Commit

Permalink
Initial commit for #279.
Browse files Browse the repository at this point in the history
  • Loading branch information
cynthia committed Jul 26, 2022
1 parent 06e9a85 commit 968b178
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,22 @@ Consider adding such features only in cases when the overall user experience is
A canonical example of this is blocking rendering in order to download and process a stylesheet.
The alternative user experience is a flash of unstyled content, which is undesirable.

<h3 id="html-idl-must-by-synced">Keep attributes in sync</h3>

If your feature introduces new attributes,
try to ensure the attributes are synchronized.

This means any new content attribute
should always have a corresponding IDL attribute with the same name,
and the state between the two should be kept synchronized.
Carving out a synchronized IDL attribute with inconsistent naming
results in confusion, and should be avoided at all costs.

<div class="note">
This does not hold the other way around.
A new IDL attribute does not always warrant a content attribute counterpart.
</div>

<h2 id="css">Cascading Style Sheets (CSS)</h2>

This section details design principles for features which are exposed via CSS.
Expand Down

0 comments on commit 968b178

Please sign in to comment.