fune/testing/web-platform/tests/html/semantics/permission-element/bounded-css-properties-reftest.tentative.html
Andy Paicu e41da79b21 Bug 1889466 [wpt PR 45509] - [PEPC] Limit min/max-height/width for PEPC, a=testonly
Automatic update from web-platform-tests
[PEPC] Limit min/max-height/width for PEPC

Put limits on what the min/max-width/height can be.

The min-height will have to be at least 1em
The max-height will have to be at most 3em

Widths are enforced by building an expression that makes use of
calc-size:
The min-width will have to be at least fit-content.
The max-width will have to be at most 3x fit-content.

Bug: 1462930

Change-Id: Idb00f9614cde69e4ff2ca295ca5e89b85b3d0f04
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5386157
Reviewed-by: Thomas Nguyen <tungnh@chromium.org>
Reviewed-by: David Baron <dbaron@chromium.org>
Commit-Queue: Andy Paicu <andypaicu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1286356}

--

wpt-commits: 7c2a090d60996315c82651c562aaea988d2220b5
wpt-pr: 45509
2024-04-19 07:34:26 +00:00

37 lines
No EOL
1,008 B
HTML

<!DOCTYPE html>
<meta charset=utf-8>
<link rel="match" href="bounded-css-properties-reftest-ref.html">
<link rel="help" href="https://github.com/WICG/PEPC/blob/main/explainer.md#locking-the-pepc-style">
<body>
<div>
The permission element should have some limits for specific properties:
<ul>
<li>font-weight is adjusted to be at least 200.</li>
<li>font-style should only have "normal" or "italic" values.</li>
<li>word-spacing should be at most 0.5 of the font size, and non-negative.</li>
<li>letter-spacing should be between -0.05 and 0.2 of the font size.</li>
</ul>
</div>
<style>
#id1 {
font-weight: 100;
font-style: oblique 30deg;
word-spacing: 1em;
font-size: 100px;
height: auto;
width: auto;
letter-spacing: 25px;
}
#id2 {
word-spacing: -1000px;
height: auto;
width: auto;
font-size: 10px;
letter-spacing: -1px;
}
</style>
<permission id="id1" type="geolocation">
<permission id="id2" type="camera">
</body>