serenity/Base/res/html/misc
Tim Ledbetter 8892c25520 Base: Return the correct value for fib(0) in Wasm example
Previously, using `wasm-decompile` to decompile the Wasm bytecode on
the `wasm.html` example page gave this output:

```
export function fib(a:int):int {
  if (a < 2) { return 1 }
  return fib(a - 2) + fib(a - 1);
}
```

With this change the bytecode now decompiles to:

```
export function fib(a:int):int {
  if (a <= 0) { return 0 }
  if (a == 1) { return 1 }
  return fib(a - 2) + fib(a - 1);
}
```

This means that the example page now prints the correct answer of 55 to
the console for `fib(10)`. Previously, `fib(10)` returned 89.

I also used `wasm-opt -Oz`, which removed an unnecessary `return`
instruction, saving 1 byte!
2024-04-11 01:17:20 +02:00
..
css-import-relative LibWeb: Invalidate styles after CSSImportRule loads 2022-03-14 22:22:53 +01:00
ddssuite_files
gifsuite_files
jpgsuite_files
pbmsuite_files Base: Optimize a bunch of PNGs 2022-06-18 21:58:43 +04:30
pgmsuite_files
ppmsuite_files Base: Optimize a bunch of PNGs 2022-06-18 21:58:43 +04:30
targasuite_files Tests/LibGfx: Add tests for compressed TGA images 2023-01-15 12:43:03 +01:00
90s-bg.png
accent-color.html Base: Use radio button groups on accent-color demo page 2023-03-26 15:09:57 +02:00
acid1.html
acid2.html
afrag.html
alert.html
async-js.html
attr-invalidate-style.html LibWeb: Remove CSS::StyleInvalidator in favor of dirtying + lazy update 2022-02-05 22:50:39 +01:00
attributes.html
attrselectors.html
backdrop-filter.html Base: Add example backdrop-filter using saturate() 2022-10-07 13:08:24 +01:00
background-no-repeat.html
background-position-xy.html LibWeb: Create EdgeStyleValue for BackgroundPositionXY with no offset 2023-07-17 14:53:52 +01:00
background-repeat-test.html
background-repeat-x.html
background-repeat-y.html
background-repeat.html
background-repeat.png
backgrounds.html
blank-no-doctype.html
blank.html
blink.html
border-radius.html LibWeb: Fix border painting with border-radius and zero-width sides 2023-07-26 08:38:54 +02:00
borders.html
box-shadow.html Base: Add box-shadow + border-radius HTML examples 2022-06-23 19:13:24 +01:00
br.html
button.html Base: Add a disabled button to the button.html test page 2022-11-03 19:15:43 +00:00
calc.html LibWeb: Reimplement CalculatedStyleValue as a calculation node tree 2023-04-13 09:53:47 +02:00
canvas-clip-path.html Base: Add canvas clip path test page 2023-04-09 18:42:45 +02:00
canvas-global-alpha.html LibWeb: Add initial implementation of CRC2D.globalAlpha 2023-06-18 20:31:11 +02:00
canvas-gradients.html LibWeb: Allow paint style fills for CRC2D strokes 2023-06-08 07:17:43 +02:00
canvas-path-quadratic-curve.html
canvas-path-rect.html LibWeb: Add canvas context2d roundRect 2023-10-20 07:20:29 +02:00
canvas-path.html
canvas-path2d.html Base: Add a test page for Path2D 2022-08-14 11:30:40 +02:00
canvas-patterns.html Base: Add a test page for canvas patterns 2023-02-03 20:36:21 +01:00
canvas-rotate.html
canvas-text.html LibWeb: Add Canvas Context2D basic font property support 2023-08-09 05:48:32 +02:00
canvas.html
car.png Base: Add box-shadow + border-radius HTML examples 2022-06-23 19:13:24 +01:00
cascade-keywords.html
checkbox.html LibWeb: Implement reverse lookup to labels from their labelable nodes 2022-02-16 19:18:57 +01:00
class-list.html
clear-1.html
clip.html Base: Clean up Clip test page after absolutely positioned divs fix 2022-08-14 11:22:52 +02:00
colors.html LibWeb: Test parsing of CSS Level 4 rgb and hsl syntax 2022-06-15 19:10:43 +01:00
computed-style.html
contenteditable.html
css-animations.html LibWeb: Fully implement CSS animation-timing-function 2023-07-13 05:10:41 +02:00
css-import-1.css
css-import-2.css
css-import-3.css
css-import.html LibWeb: Invalidate styles after CSSImportRule loads 2022-03-14 22:22:53 +01:00
css.html
cursor.html Base: Fix typo in cursor test page 2023-04-14 09:57:49 +02:00
custom-list-item-2.png Everywhere: Fix spelling mistakes 2022-01-07 15:44:42 +01:00
custom-list-item.png
custom-properties.html LibWeb: Check recursively if CSS functions contain var() or attr() 2022-06-02 22:31:41 +02:00
data-url.html
ddssuite.html
demo.html Base: Move fun canvas demo JavaScript to seperate file 2022-07-04 23:09:06 +02:00
display-grid.html LibWeb+Base: Fix row-height bug in Grid when there is a column gap 2023-03-10 18:20:27 +01:00
display-table.html Base: Add test page for table 2023-01-03 20:02:47 +01:00
dom.html
effects_with_opacity_and_transforms.html Base: Add paint effects with opacity/transforms HTML test cases 2022-09-25 18:37:31 +02:00
empty.html
event-bubbling-and-multiple-listeners.html
events.html LibWeb: Dispatch mouse events to topmost element instead of hit target 2022-06-05 22:31:06 +01:00
exceptions.html Base: Add test page for exceptions 2022-10-15 01:25:12 +02:00
first-child.html
first-of-type.html
flex-2.html
flex-item-preferred-size-should-be-intrinsic-size-contribution.html LibWeb: Use preferred flex item sizes as min/max-content contribution 2022-11-05 11:42:19 +01:00
flex-order.html LibWeb: Implement flex reverse layouts 2022-04-02 19:01:14 +02:00
flex.html LibWeb: Fix sizing of flex child that has flex-basis 0 2022-03-30 21:16:47 +02:00
float-1.html
float-2.html
float-3.html
float-around-things.html LibWeb: Improve float: right behavior 2022-09-07 17:47:33 +02:00
float-stress-1.html LibWeb: Improve inline flow around floating boxes 2022-09-16 15:15:50 +02:00
float-stress-2.html LibWeb: Check both top and bottom of float position when looking for fit 2022-09-22 16:54:12 +02:00
float-stress-3.html LibWeb: Only include containing blocks in coordinate space translation 2022-09-22 16:54:12 +02:00
focus.html Base: Add a :focus/:focus-within test page 2022-03-20 17:35:31 +00:00
font-face.html Base: Add a test page for CSS font-face 2022-04-09 23:48:18 +02:00
fonts.html LibWeb+Base: Parse font-style CSS property 2022-02-20 11:50:38 +01:00
form.html
formdata.html LibWeb: Add multipart/form-data demo to formdata.html 2023-04-05 09:43:52 +01:00
fun-canvas.js Base: Move fun canvas demo JavaScript to seperate file 2022-07-04 23:09:06 +02:00
gifsuite.html
gol-wasm.html
gradients.html Base: Add some repeating-radial-gradient() HTML examples 2022-12-03 09:06:51 -05:00
hover.html
html-escape-test.html
iframe-subframe.html
iframe.html
image-rendering.html LibWeb: Add support for CSS image-rendering property 2022-02-19 11:38:46 +01:00
images.html
img-canvas.html
inline-block-link.html
inline-block.html
inline-node.html LibWeb: Implement the CSS outline-offset property 2023-08-03 05:25:48 +02:00
innerHTML.html
innertext_textcontent.html
input-range.html LibWeb: Add basic input range rendering 2023-12-21 13:17:51 +01:00
input.html LibWeb: Add basic input range rendering 2023-12-21 13:17:51 +01:00
is-selector.html Base: Add a test page for the CSS :is() selector 2022-03-18 11:34:02 +01:00
jpg.html
justify-content.html
key-logger.html Base: Add a test page to log KeyboardEvent data 2023-07-09 06:32:20 +02:00
last-child.html
last-of-type.html
link-over-zindex-block.html
link.css
link.html
lists.html LibWeb: Add ol start and li value attributes support 2023-11-09 16:10:54 +01:00
location.html
lorem.html
mandelbrot-wasm.html
many-buggies.html
margin-collapse-1.html
margin-collapse-2.html
margin-collapse-3.html LibWeb: Margin top collapsing between parent and first child 2022-12-30 14:21:19 +01:00
margin-collapse-4.html LibWeb: Margin bottom collapsing between parent and last child 2022-12-30 14:21:19 +01:00
media-queries.html Base: Add ratio tests to media-query test page 2022-03-07 13:42:25 +01:00
message-channel.html
meter.html LibWeb: Add basic HTML meter element support 2023-12-04 19:54:43 +00:00
more-attribute-selectors.html LibWeb: More tests for attribute selectors 2022-03-29 18:53:20 +02:00
mouse-events.html LibWeb: Add modifier keys to MouseEvent 2023-09-15 22:12:56 +02:00
noscript.html Base: Add a <noscript> test page 2022-03-31 17:08:38 +02:00
not-selector.html Base: Correct the :not() test page's title 2022-03-18 11:34:02 +01:00
nth-child.html LibWeb+Base: Fix An+B of foo parsing 2022-03-24 18:08:45 +01:00
nth-last-child.html Base: Add of foo tests to nth-child and nth-last-child test pages 2022-03-18 11:34:02 +01:00
nth-last-of-type.html LibWeb: Correct handling of negative step values in nth-foo() selectors 2022-03-02 17:39:57 +01:00
nth-of-type.html LibWeb: Correct handling of negative step values in nth-foo() selectors 2022-03-02 17:39:57 +01:00
old-computer.png Base: Add background-image + border-radius HTML examples 2022-06-16 10:28:07 +01:00
only-child.html
opacity.html LibWeb: Update visibility when Node was invisible before 2022-09-21 10:47:41 +01:00
outline.html LibWeb: Implement the CSS outline-offset property 2023-08-03 05:25:48 +02:00
overflow.html
padding-inline.html
palette.html
pbmsuite.html
percent-css.html
pgmsuite.html
phint.html
pngsuite_bas_png.html
pngsuite_int_png.html
pngsuite_siz_png.html
position-absolute-from-edges.html
position-absolute-top-left.html
ppmsuite.html
pre.html Base: Add a <pre> test page 2022-01-23 12:08:37 +01:00
private-element-test.html LibWeb: Implement the HostEnsureCanAddPrivateElement JS hook 2022-08-27 20:33:27 +01:00
progressbar.html Base: Remove modifications from fancy progress bar demo 2022-08-12 12:24:15 +02:00
prompt.html Base: Add a simple test page for window.prompt 2022-11-16 17:23:56 +00:00
pseudo-elements.html Base: Remove my copyright from this HTML file 2022-03-01 15:14:18 +00:00
qsa.html
radio.html
raf.html
root.html
script-preparation-test.html
select.html LibWeb: Add support for select options disabled state 2024-04-08 17:24:48 -04:00
selectors.html
serenity-screenshot.png Base: Optimize a bunch of PNGs 2022-06-18 21:58:43 +04:30
set-timeout-and-interval.html Base: Replace setInterval test page with a more thorough timer test page 2022-03-04 19:51:26 +01:00
simple.html
small.html
storage.html Base: Add test page for Web Storage API 2022-05-28 23:54:06 +01:00
supports.html LibWeb: Implement @supports selector(.foo) 2022-02-19 19:33:54 +01:00
svg-fill-rule.html Base: Add an SVG fill-rule example page 2023-06-11 19:34:24 +02:00
svg-gradients.html Base: Add some examples of SVG gradients with different spreadMethods 2023-08-20 20:04:10 +02:00
svg-preserve-aspect-ratio.html Base: Add SVG preserveAspectRatio demo page 2023-04-17 07:32:31 +02:00
svg-transforms.html Base: Add SVG transform test page 2023-04-12 07:40:22 +02:00
svg.html Base: Use fill-opacity and stroke-opacity in SVG example 2023-05-20 08:52:19 +02:00
test-cff.woff Base: Add a test page for CSS font-face 2022-04-09 23:48:18 +02:00
test-cff.woff2 Base: Add a test page for CSS font-face 2022-04-09 23:48:18 +02:00
test-truetype.woff Base: Add a test page for CSS font-face 2022-04-09 23:48:18 +02:00
test-truetype.woff2 Base: Add a test page for CSS font-face 2022-04-09 23:48:18 +02:00
test.otf Base: Add a test page for CSS font-face 2022-04-09 23:48:18 +02:00
test.ttf Base: Add a test page for CSS font-face 2022-04-09 23:48:18 +02:00
text-decoration.html LibWeb: Allow multiple text-decoration-lines 2022-04-14 21:54:10 +02:00
text-shadow.html Base: Add a text-shadow test page 2022-03-24 18:08:34 +01:00
textarea.html LibWeb: Add textarea placeholder 2024-01-07 10:22:32 +01:00
tile.png
transform.html Base: Add rotateX, rotateY, rotateZ and matrix3d examples for transform 2022-10-01 14:07:47 +02:00
trigonometry.html
unhandledpromisetest.html Everywhere: Fix a variety of typos 2022-09-14 04:46:49 +00:00
vertical-align.html LibWeb: Support CSS vertical-align values "top" and "bottom" 2022-03-24 22:57:01 +01:00
video-source-children.html Base: Add a test page to load a video element with <source> children 2023-05-13 15:51:44 +02:00
video-webm.html Base: Add options to the video test page to change its attributes 2023-04-21 07:54:36 +02:00
wasm.html Base: Return the correct value for fib(0) in Wasm example 2024-04-11 01:17:20 +02:00
web-animations.html Base: Extend the web-animations demo to showcase complex transforms 2024-03-02 12:25:53 +01:00
webgl-clear-color-and-multiple-contexts.html LibWeb: Add ability to present LibGL framebuffer and add clearing 2022-06-13 21:45:27 +01:00
websocket.html Base: Replace the WebSocket demo target URL with a working one 2022-02-06 13:10:10 +01:00
welcome.html LibWeb: Add a demo for web-animations 2024-02-23 20:52:37 +01:00
welcome.js LibWeb+WebContent: Setup the js console client earlier 2022-09-21 17:34:32 +01:00
where-selector.html Base: Add a test page for the CSS :where() selector 2022-03-18 11:34:02 +01:00
worker.js LibWeb+WebWorker: Convert Workers to use MessagePorts for postMessage 2023-12-25 12:09:11 +01:00
worker_parent.html LibWeb+WebWorker: Implement a first cut of post_message for Workers 2023-11-24 08:41:38 +01:00