LibWeb: Map embedded content element attributes to dimension properties

This commit is contained in:
Tim Ledbetter 2024-10-01 17:26:01 +01:00 committed by Andreas Kling
commit 728236f4d2
Notes: github-actions[bot] 2024-10-02 09:28:22 +00:00
8 changed files with 189 additions and 1 deletions

View file

@ -19,3 +19,39 @@ Test marquee.width = "120." maps to width: 120px
Test marquee.height = "100" maps to height: 100px
Test marquee.height = " 00110 " maps to height: 110px
Test marquee.height = "120." maps to height: 120px
Test object.hspace = "100" maps to marginLeft: 100px
Test object.hspace = " 00110 " maps to marginLeft: 110px
Test object.hspace = "120." maps to marginLeft: 120px
Test object.hspace = "100" maps to marginRight: 100px
Test object.hspace = " 00110 " maps to marginRight: 110px
Test object.hspace = "120." maps to marginRight: 120px
Test object.vspace = "100" maps to marginTop: 100px
Test object.vspace = " 00110 " maps to marginTop: 110px
Test object.vspace = "120." maps to marginTop: 120px
Test object.vspace = "100" maps to marginBottom: 100px
Test object.vspace = " 00110 " maps to marginBottom: 110px
Test object.vspace = "120." maps to marginBottom: 120px
Test object.width = "100" maps to width: 100px
Test object.width = " 00110 " maps to width: 110px
Test object.width = "120." maps to width: 120px
Test object.height = "100" maps to height: 100px
Test object.height = " 00110 " maps to height: 110px
Test object.height = "120." maps to height: 120px
Test embed.hspace = "100" maps to marginLeft: 100px
Test embed.hspace = " 00110 " maps to marginLeft: 110px
Test embed.hspace = "120." maps to marginLeft: 120px
Test embed.hspace = "100" maps to marginRight: 100px
Test embed.hspace = " 00110 " maps to marginRight: 110px
Test embed.hspace = "120." maps to marginRight: 120px
Test embed.vspace = "100" maps to marginTop: 100px
Test embed.vspace = " 00110 " maps to marginTop: 110px
Test embed.vspace = "120." maps to marginTop: 120px
Test embed.vspace = "100" maps to marginBottom: 100px
Test embed.vspace = " 00110 " maps to marginBottom: 110px
Test embed.vspace = "120." maps to marginBottom: 120px
Test embed.width = "100" maps to width: 100px
Test embed.width = " 00110 " maps to width: 110px
Test embed.width = "120." maps to width: 120px
Test embed.height = "100" maps to height: 100px
Test embed.height = " 00110 " maps to height: 110px
Test embed.height = "120." maps to height: 120px