summaryrefslogtreecommitdiff
path: root/Base/res/html/misc
AgeCommit message (Collapse)Author
2022-09-14Base: Add more tests for display: gridmartinfalisse
2022-09-07LibWeb: Improve `float: right` behaviorAndreas Kling
- Use the border box of the floated element when testing if something needs to flow around it. - Take the floated element's containing block size into account (instead of the BFC root) when calculating available space on a line where a right-side float intrudes.
2022-08-27LibWeb: Implement the HostEnsureCanAddPrivateElement JS hookdavidot
Also added a local test for ensuring this behavior since it is unique to browsers. Since we don't actually use WindowProxy anywhere yet we just test on location for now.
2022-08-25Base: Add display grid test pagemartinfalisse
2022-08-23Base: Add an example `linear-gradient` with double-position color stopsMacDue
2022-08-18Base: Add some `repeating-linear-gradient()` examplesMacDue
2022-08-14Base: Add a test page for Path2DSam Atkins
Neither of the tests here actually passes properly right now. It's a little more aspirational... In the first one, the circle draws in the wrong place due apparently to existing bugs in `CanvasRenderingContext2D::ellipse()`. In the second, I just haven't yet implemented creating a Path2D from an SVG path string, because that's going to take a fair bit of untangling first.
2022-08-14Base: Clean up Clip test page after absolutely positioned divs fixmartinfalisse
Clean up the Clip test page after adding the logic necessary so that absolutely positioned divs are correctly positioned.
2022-08-12Base: Add some more `linear-gradient()` transition hint demosMacDue
This adds a demo of making a 'rainbow' with hard edges using transition hints, along with an animated demo of moving the transition hint.
2022-08-12Base: Remove modifications from fancy progress bar demoMacDue
This restores the demo to being the same as on css-tricks.com.
2022-08-08Base: Replace linear-gradient() pattern demo with cooler oneMacDue
The previous demo didn't work that well, not due to any LibWeb issue (same in other browsers), it just was a broken demo. This demo shows the neat tricks you can do with linear-gradient()s much better.
2022-08-08Base: Add linear-gradient + background-size demoMacDue
2022-08-08Base: Add linear-gradient list-marker demoMacDue
2022-08-08Base: Add the styled progress bar demo from css-tricks.comMacDue
See: https://css-tricks.com/html5-progress-element/ this is a neat demo of a pure CSS progress bar that makes use of linear-gradients, background-repeat, and background-size. All of which now work :^)
2022-08-07Base: Add test page for CSS clip propertyTom
2022-08-07Base: Add an example `-webkit-linear-gradient()`MacDue
2022-07-26Base: Add some more border-radius test casesMacDue
* A border-radius + a border on a <img> tag - The border-radius on the <img> should shrink to line up with the border. * A border-radius + a border on a div with overflow: hidden - The clipping border-radius should shrink (same as the image).
2022-07-24Base: Remove some unnecessary styling from progressbar.htmlMacDue
The button color here now just creates issues on dark themes, and the margin on the progress bar does nothing.
2022-07-23Base: Add some more progress bar demosMacDue
This adds an example of a progress bar with just `appearance none`, and one with `appearance none` and some custom styling.
2022-07-19Base: Add some more border-radius test casesMacDue
This adds a test for overflow: hidden + border-radius clipping child positioned elements, and child backgrounds.
2022-07-18Base: Add some more fun gradient demosMacDue
Adds tests for: - Multi-stop gradient at arbitrary angles (CPU brr) - Default/calculated color stops - to <corner> - Pre-multiplied alpha mixing
2022-07-17Base: Add simple gradients test pageMacDue
2022-07-04Base: Example of border-radius on iframe and canvas elementsMacDue
2022-07-04Base: Add some border-radius + overflow: hidden HTML examplesMacDue
2022-07-04Base: Move fun canvas demo JavaScript to seperate fileMacDue
This will allow this demo to be reused for other tests.
2022-07-04Base: Add some background-clip + border-radius HTML examplesMacDue
2022-06-30Base: Add example for `calc(<percentage> - <length>)` to calc.htmlLinus Groh
`calc(<percentage> + -<length>)` did work before, but a direct `calc(<percentage> - <length>)` was broken. Let's have a test for both.
2022-06-30Base: Fix label/actual style mismatches in calc.htmlLinus Groh
2022-06-29LibWeb: Use CSO if running script is null in HostPromiseRejectionTrackerLuke Wilde
2022-06-26Base+Browser+BrowserSettings: Add default page for new tabXexxa
2022-06-23Base: Add box-shadow + border-radius HTML examplesMacDue
This now also shows the same box-shadows on the right on top of a background to test the clipping underneath the content.
2022-06-18Base: Optimize a bunch of PNGskleines Filmröllchen
These all save at least a couple of kilobytes.
2022-06-16Base: Add <img> tag + border-radius HTML exampleMacDue
2022-06-16Base: Add background-image + border-radius HTML examplesMacDue
2022-06-15LibWeb: Test parsing of CSS Level 4 rgb and hsl syntaxThomas Fach-Pedersen
2022-06-14Base: Add an elliptical outline border HTML exampleMacDue
2022-06-13LibWeb: Add ability to present LibGL framebuffer and add clearingLuke Wilde
2022-06-13Base: Add some elliptical border radius HTML examplesMacDue
2022-06-05LibWeb: Dispatch mouse events to topmost element instead of hit targetkleines Filmröllchen
This improves our spec compliance by allowing the user to click non-element nodes (like text) and having the click be registered with the parent element (like a div or button). This makes Fandom's cookie accept button work if you click the text. Additionally, the events test page contains a test to check the target element, which would previously not exist when we fired the event at a non-element.
2022-06-02LibWeb: Check recursively if CSS functions contain `var()` or `attr()`Karol Kosek
Previously, `var()` inside functions like `rgb()` wasn't resolved. This will set the background color for badges in the New category on https://ports.serenityos.net. :^)
2022-05-28Base: Add test page for Web Storage APIRafał Babiarz
2022-04-14LibWeb: Allow multiple text-decoration-linesSam Atkins
The spec grammar for `text-decoration-line` is: `none | [ underline || overline || line-through || blink ]` Which means that it's either `none`, or any combination of the other values. This patch makes that parse for `text-decoration-line` and `text-decoration`, stores the results as a Vector, and adjusts `paint_text_decoration()` to run as a loop over all the values that are provided. As noted, storing a Vector of values is a bit wasteful, as they could be stored as flags in a single `u8`. But I was getting too confused trying to do that in a nice way.
2022-04-09Base: Add a test page for CSS font-faceSimon Wanner
2022-04-02LibWeb: Implement flex reverse layoutsEnver Balalic
This builds on the work done by implementing the flex order CSS property and implements flex reverse layouts by just reversing the order and the items within each order bucket.
2022-04-02LibWeb: Implement the flex order CSS propertyEnver Balalic
Adds support for the flex order property and a test page for it on the browser welcome page.
2022-03-31Base: Add a <noscript> test pageLinus Groh
2022-03-30LibWeb: Fix sizing of flex child that has flex-basis 0Enver Balalic
Before if an element didn't have a main min size we would clamp it to a literal zero. If that element also had a flex-basis 0 it's width would end up being 0. This patch adds a determine_min_main_size_of_child function that will calculate the minimum main size for the box based on the content of the box. We use the result of that function now instead of clamping the element main min size to 0. This also adds one more box to the flex.html test page, which is the same flex: 0 0 0 box but with flex-direction: column.
2022-03-29LibWeb: More tests for attribute selectorsDaniel Glazman
2022-03-26Base: Add inline properties to custom-properties test pageKarol Kosek
2022-03-24LibWeb: Support CSS vertical-align values "top" and "bottom"Andreas Kling