diff options
author | Andreas Kling <kling@serenityos.org> | 2022-11-28 16:40:15 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-28 19:14:05 +0100 |
commit | e3b8a8f7c8d3e6f9d26c2f11fb1966f557ce3208 (patch) | |
tree | f33c79159e0dbc04534cad9323514d579a5e239e /Base | |
parent | c590c5c444b3c8acd6e1711ef52b9f12cbab584b (diff) | |
download | serenity-e3b8a8f7c8d3e6f9d26c2f11fb1966f557ce3208.zip |
LibWeb: Treat unresolvable percentage width on inline-block as auto
Diffstat (limited to 'Base')
-rw-r--r-- | Base/res/html/tests/inline-block-treat-100pct-width-as-auto.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Base/res/html/tests/inline-block-treat-100pct-width-as-auto.html b/Base/res/html/tests/inline-block-treat-100pct-width-as-auto.html new file mode 100644 index 0000000000..2e3aa27add --- /dev/null +++ b/Base/res/html/tests/inline-block-treat-100pct-width-as-auto.html @@ -0,0 +1,21 @@ + +<!DOCTYPE html><html><head><style> + * { + border: 1px solid black !important; + } + .outer { + float: left; + background: pink; + } + .first { + display: inline-block; + width: 100%; + background: orange; + } + .second { + width: 50px; + height: 50px; + background: magenta; + } + </style> + </head><body><div class="outer"><div class="first">programming</div><div class="second"></div> |