mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00:00
LibWeb: Compute display: contents
as none
for unusual elements
https://drafts.csswg.org/css-display-3/#unbox-html specifies certain elements that have their `display` style computed as `none` when specified as `contents`. This fixes at least one WPT test: http://wpt.live/css/css-display/display-contents-suppression-dynamic-001.html
This commit is contained in:
parent
eef9a53eec
commit
3b1d1d4582
Notes:
github-actions[bot]
2024-11-13 10:12:00 +00:00
Author: https://github.com/mikewatt 🔰
Commit: 3b1d1d4582
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2224
31 changed files with 156 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Test: display: contents unboxing works in presence of dynamic changes to the tree.</title>
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-display-3/#unbox">
|
||||
<link rel="match" href="../../../../expected/wpt-import/css/css-display/display-contents-suppression-dynamic-001-ref.html">
|
||||
<p>Test passes if you see nothing below.</p>
|
||||
<textarea style="display: contents">
|
||||
FAIL
|
||||
</textarea>
|
||||
<script>
|
||||
let textarea = document.querySelector("textarea");
|
||||
textarea.offsetTop;
|
||||
textarea.appendChild(document.createTextNode("FAIL"));
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue