Skip to content

Missing layout updates #40419

@jdm

Description

@jdm

Observed with:

  • /css/CSS2/generated-content/before-after-dynamic-attr-001.xht
  • /css/CSS2/selectors/first-letter-dynamic-002.xht
  • /css/selectors/invalidation/negated-first-of-type-in-nonsubject-position.html

To reproduce, apply the following diff:

diff --git a/python/wpt/run.py b/python/wpt/run.py
index 595d17ed475..386c1c932fd 100644
--- a/python/wpt/run.py
+++ b/python/wpt/run.py
@@ -68,7 +68,7 @@ def run_tests(default_binary_path: str, **kwargs: Any) -> int:
     # chunks and leads to more consistent timing on GitHub Actions.
     set_if_none(kwargs, "chunk_type", "id_hash")

-    kwargs["user_stylesheets"].append(os.path.join(SERVO_ROOT, "tests", "wpt", "tests", "fonts", "ahem.css"))
+    #kwargs["user_stylesheets"].append(os.path.join(SERVO_ROOT, "tests", "wpt", "tests", "fonts", "ahem.css"))

     set_if_none(kwargs, "binary", default_binary_path)
     set_if_none(kwargs, "webdriver_binary", default_binary_path)

Then run either ./mach test-wpt /css/CSS2/generated-content/before-after-dynamic-attr-001.xht or ./mach run tests/wpt/tests/css/CSS2/generated-content/before-after-dynamic-attr-001.xht. The former consistently fails; the latter shows the dirty page content until the user's mouse touches the affected content.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions