Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -660,19 +660,24 @@ p.ECMAaddress {
margin: 0;
}

#sec-terms-and-definitions dfn {
[id$=terms-and-definitions] dfn {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer matching on class rather than id suffix, and no matter what such special behavior should be documented as part of the ecmarkup contract.

Suggested change
[id$=terms-and-definitions] dfn {
.ecma-terms-and-definitions dfn {

font-style: normal;
}

#sec-terms-and-definitions h1 .secnum {
[id$=terms-and-definitions] emu-clause h1 {
font-size: 10pt;
-prince-bookmark-level: none;
}

[id$=terms-and-definitions] h1 .secnum {
display: block;
}

#sec-terms-and-definitions > h1 > .secnum {
[id$=terms-and-definitions] > h1 > .secnum {
display: inline;
}

#sec-terms-and-definitions h1 + p {
[id$=terms-and-definitions] h1 + p {
margin-top: 0;
}

Expand Down
13 changes: 9 additions & 4 deletions test/baselines/generated-reference/assets-inline.html
Original file line number Diff line number Diff line change
Expand Up @@ -3917,19 +3917,24 @@
margin: 0;
}

#sec-terms-and-definitions dfn {
[id$=terms-and-definitions] dfn {
font-style: normal;
}

#sec-terms-and-definitions h1 .secnum {
[id$=terms-and-definitions] emu-clause h1 {
font-size: 10pt;
-prince-bookmark-level: none;
}

[id$=terms-and-definitions] h1 .secnum {
display: block;
}

#sec-terms-and-definitions > h1 > .secnum {
[id$=terms-and-definitions] > h1 > .secnum {
display: inline;
}

#sec-terms-and-definitions h1 + p {
[id$=terms-and-definitions] h1 + p {
margin-top: 0;
}

Expand Down