Skip to content

The headless browser for AI agents and web scraping

Capture text truncation parity at screenshot time

SGavrl17944a4b013d
diff --git a/render-repros/paired-corpus.py b/render-repros/paired-corpus.py
index ae3694fd..078df52c 100755
--- a/render-repros/paired-corpus.py
+++ b/render-repros/paired-corpus.py
@@ -121,6 +121,9 @@ def geometry_probe_javascript(selectors_expression):
"letter_spacing:style.letterSpacing,white_space:style.whiteSpace,"
"word_break:style.wordBreak,overflow_wrap:style.overflowWrap,"
"text_overflow:style.textOverflow,"
+ "webkit_line_clamp:style.webkitLineClamp,"
+ "webkit_box_orient:style.webkitBoxOrient,"
+ "direction:style.direction,unicode_bidi:style.unicodeBidi,"
"flex_direction:style.flexDirection,flex_wrap:style.flexWrap,"
"flex_grow:style.flexGrow,flex_shrink:style.flexShrink,"
"flex_basis:style.flexBasis,align_self:style.alignSelf,"
diff --git a/render-repros/test_paired_corpus.py b/render-repros/test_paired_corpus.py
index c42e0863..695e134d 100644
--- a/render-repros/test_paired_corpus.py
+++ b/render-repros/test_paired_corpus.py
@@ -368,6 +368,10 @@ class GeometryProbeTests(unittest.TestCase):
self.assertIn("font_family:style.fontFamily", expression)
self.assertIn("line_height:style.lineHeight", expression)
self.assertIn("white_space:style.whiteSpace", expression)
+ self.assertIn("webkit_line_clamp:style.webkitLineClamp", expression)
+ self.assertIn("webkit_box_orient:style.webkitBoxOrient", expression)
+ self.assertIn("direction:style.direction", expression)
+ self.assertIn("unicode_bidi:style.unicodeBidi", expression)
self.assertIn(
"grid_template_columns:style.gridTemplateColumns", expression
)