LibWeb/CSS: Support overlay keyword as alias to auto in overflow

We don't yet have a system for "legacy value aliases", but until we have
a lot of them we can handle them manually.

We also have to do this in two places because
parse_css_value_for_property() doesn't call any property-specific
parsing code.
This commit is contained in:
Sam Atkins 2025-07-17 10:44:29 +01:00
commit db75405881
Notes: github-actions[bot] 2025-07-21 09:05:57 +00:00
4 changed files with 56 additions and 2 deletions

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/8063">
<link rel="match" href="../../../../expected/wpt-import/css/css-overflow/overflow-overlay-ref.html">
<style>
div {
width: 15em;
height: 10em;
overflow: overlay;
}
</style>
<div>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>