From ab5b89eb95964592386f260caa90fbb2e7b83433 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sat, 27 May 2023 02:58:19 +0300 Subject: LibWeb: Add basic parsing of grid shorthand CSS property Introduces incomplete parsing of grid shorthand property. Only part of syntax is supported for now but it is enough to significantly improve rendering of websites that use this shorthand to define grid :) --- Tests/LibWeb/Layout/expected/grid/grid-shorthand-property.txt | 5 +++++ Tests/LibWeb/Layout/input/grid/grid-shorthand-property.html | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 Tests/LibWeb/Layout/expected/grid/grid-shorthand-property.txt create mode 100644 Tests/LibWeb/Layout/input/grid/grid-shorthand-property.html (limited to 'Tests/LibWeb/Layout') diff --git a/Tests/LibWeb/Layout/expected/grid/grid-shorthand-property.txt b/Tests/LibWeb/Layout/expected/grid/grid-shorthand-property.txt new file mode 100644 index 0000000000..19ec62190a --- /dev/null +++ b/Tests/LibWeb/Layout/expected/grid/grid-shorthand-property.txt @@ -0,0 +1,5 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline + BlockContainer at (8,8) content-size 784x100 children: not-inline + Box at (8,8) content-size 784x100 [GFC] children: not-inline + BlockContainer at (8,8) content-size 200x100 [BFC] children: not-inline diff --git a/Tests/LibWeb/Layout/input/grid/grid-shorthand-property.html b/Tests/LibWeb/Layout/input/grid/grid-shorthand-property.html new file mode 100644 index 0000000000..8b9c7a4475 --- /dev/null +++ b/Tests/LibWeb/Layout/input/grid/grid-shorthand-property.html @@ -0,0 +1,10 @@ +
\ No newline at end of file -- cgit v1.2.3