ladybird/Tests/LibWeb
Sam Atkins 7daf5cdaff LibWeb: Invalidate layout if pseudo-element style changes
Pseudo-elements' style is only computed while building the layout tree.
This meant that previously, they would not have their style recomputed
in some cases. (Such as when :hover is applied to an ancestor.)

Now, when recomputing an element's style, we also return a full
invalidation if one or more pseudo-elements would exist either before or
after style recomputation.

This heuristic produces some false positives, but no false negatives.
Because pseudo-elements' style is computed during layout building, any
computation done here is then thrown away. So this approach minimises
the amount of wasted style computation. Plus it's simple, until we have
data on what approach would be faster.

This fixes the Acid2 nose becoming blue when the .nose div is hovered.
2024-07-30 09:45:45 +02:00
..
Layout LibWeb/CSS: Treat counters() function with 1 argument as invalid 2024-07-29 12:57:43 -04:00
Ref Tests: Transform some ref tests into screenshot tests 2024-07-21 10:36:17 +02:00
Screenshot LibWeb+LibGfx: Use Skia for text rasterization 2024-07-27 08:18:54 +02:00
Text LibWeb: Invalidate layout if pseudo-element style changes 2024-07-30 09:45:45 +02:00
WPT Tests: Enable WPT/run.sh to run an arbitrary subset of tests 2024-07-17 09:55:11 -06:00
add_libweb_test.py Tests/LibWeb: Add a script to create a new test, starting with Text 2024-04-10 17:17:40 -06:00
CMakeLists.txt Everywhere: Don't install code generators and test binaries 2024-07-10 10:13:21 -06:00
rebaseline-libweb-test Tests: Make rebaseline-libweb-test OS aware 2024-07-05 16:29:00 -06:00
TestConfig.ini Tests: Skip css-keyframe-fill-forwards.html ref test 2024-06-26 18:56:33 -06:00
TestCSSIDSpeed.cpp LibWeb: Make value_id_from_string() return Optional 2023-05-25 06:36:10 +02:00
TestCSSPixels.cpp LibWeb: Remove rounding division for CSSPixels 2024-01-06 21:40:27 +01:00
TestFetchInfrastructure.cpp LibWeb: Remove OOM propagation from Fetch::Infrastructure::HTTP 2024-04-27 07:08:14 +02:00
TestFetchURL.cpp LibWeb/Fetch: Use MimeType in DataURL 2024-06-02 19:55:53 +02:00
TestHTMLTokenizer.cpp Everywhere: Remove Serenity specific code from tests 2024-07-05 07:29:51 +02:00
TestMicrosyntax.cpp LibWeb: Add test for week_number_of_the_last_day microsyntax 2023-12-11 14:04:27 -07:00
TestMimeSniff.cpp LibWeb/MimeSniff: Implement "minimize a supported MIME type" 2024-05-19 16:25:50 +02:00
TestNumbers.cpp LibWeb: Implement spec-compliant integer parsing 2023-08-24 22:26:53 +01:00
tokenizer-test.html LibWeb: Fix assertion failure when tokenizing JS regex literals 2021-07-15 01:47:22 +02:00