You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the WGSL spec we would like to start using the assert capabilities of bikeshed to annotate the spec. We started adding asserts in gpuweb/gpuweb#2783 but ran into the issue that a lot of what we'd like to assert on are bullet point lists or tables.
While this generates in bikeshed, it fails the HTML validation because the <ul> element ends up embedded inside a <span>.
Is this something that could be handled in bikeshed? Possibly by doing something like generating the assert from the contents of the list, but not wrapping the list in the <span> tag in the generated content? Or something like having parent/child assert spans so the list elements have their own span ids, but they link to a parent span that covers all of them?
The text was updated successfully, but these errors were encountered:
This PR adds the ability to add `assert` to a div tag to generate the
unique assert hash for the contents of the div and then attach an
`id=assert-<hash>` to the div. This allows using the assert
functionality with larger block based pieces of spec.
Fixesspeced#2268
Thought of another, easier, possiblity which is to allow adding assert to a <div>. Then we can do <div assert> around the larger blocks while using <assert> for the smaller inline assertions. This then adds the id in the same way to the div as it would to the assert span.
In the WGSL spec we would like to start using the
assert
capabilities of bikeshed to annotate the spec. We started adding asserts in gpuweb/gpuweb#2783 but ran into the issue that a lot of what we'd like to assert on are bullet point lists or tables.So, what we'd like to do is:
While this generates in bikeshed, it fails the HTML validation because the
<ul>
element ends up embedded inside a<span>
.Is this something that could be handled in bikeshed? Possibly by doing something like generating the assert from the contents of the list, but not wrapping the list in the
<span>
tag in the generated content? Or something like having parent/child assert spans so the list elements have their own span ids, but they link to a parent span that covers all of them?The text was updated successfully, but these errors were encountered: