Commit graph

87 commits

Author SHA1 Message Date
Sebastian Hengst
603bb53f34 Backed out 210 changesets (bug 1634781, bug 1635593, bug 1636959, bug 1635957, bug 1634942, bug 1629179, bug 1634613, bug 1633868, bug 1636952, bug 1634944, bug 1635539, bug 1636045, bug 1589335, bug 1636575, bug 1635043, bug 1635996, bug 1635643, bug 1635994, bug 1634529, bug 1593063, bug 1635049, bug 1633606, bug 1635808, bug 1636310, bug 1636358, bug 1634070, bug 1635418, bug 1636258, bug 1634622, bug 1625663, bug 1635306, bug 1635004, bug 1634575, bug 1636399, bug 1635086, bug 1626529, bug 1636693, bug 1634136, bug 1635323, bug 1633934, bug 1634249, bug 1636652, bug 1636565, bug 1629063, bug 1633854, bug 1636090, bug 1600404, bug 1634802, bug 1635928, bug 1635425, bug 1633673, bug 1636099, bug 1636345, bug 1635078, bug 1637109, bug 1635342, bug 1635838, bug 1633074, bug 1637101, bug 1635804, bug 1634630, bug 1634774, bug 1632046, bug 1636017, bug 1633690, bug 1635673, bug 1636115, bug 1635138, bug 1636910, bug 1637211, bug 1636462, bug 1634118, bug 1635336, bug 1634161, bug 1636978, bug 1632614, bug 1634581, bug 1636834, bug 1635337, bug 1633787, bug 1633588, bug 1636833, bug 1635702, bug 1634298, bug 1635316, bug 1634725, bug 1475158, bug 1636230, bug 1633441, bug 1635971, bug 1636573, bug 1634157, bug 1634150, bug 1633593, bug 1636020, bug 1635479, bug 1633999, bug 1636532, bug 1634510, bug 1636066, bug 1634718, bug 1637245, bug 1635141, bug 1636475, bug 1635304, bug 1634114, bug 1635782, bug 1635751, bug 1635780, bug 1629089, bug 1636435, bug 1634297, bug 1634697, bug 1636126, bug 1635217, bug 1636000, bug 1635896, bug 1635817, bug 1636527, bug 1635815, bug 1631821, bug 1635813, bug 1634183, bug 1636853, bug 1633594, bug 1635453, bug 1634807, bug 1630901, bug 1635845, bug 1635988, bug 1633611, bug 1635195, bug 1635712, bug 1634067, bug 1636172, bug 1625005, bug 1634214, bug 1633691, bug 1636134, bug 1631998, bug 1634612, bug 1636322, bug 1634794, bug 1634611, bug 1635315, bug 1636605, bug 1636288, bug 1635541, bug 1636875, bug 1636876, bug 1636449, bug 1636448, bug 1630074, bug 1637486, bug 1628246, bug 1633577) for breaking spidermonkey tasks. CLOSED TREE
Backed out changeset 7baa72e0d62c (bug 1637486)
Backed out changeset 24e38d0cf349 (bug 1635702)
Backed out changeset a99469886218 (bug 1635702)
Backed out changeset 0bd06c295951 (bug 1637211)
Backed out changeset 893f40e8ac70 (bug 1637211)
Backed out changeset 7e4449460eee (bug 1636952)
Backed out changeset abc7724f7d24 (bug 1637109)
Backed out changeset 3c4aacfb190a (bug 1637245)
Backed out changeset 525bb6234d13 (bug 1636978)
Backed out changeset 835a90775878 (bug 1636575)
Backed out changeset 4bdd2bf8bfdc (bug 1637101)
Backed out changeset 798fcf5806f2 (bug 1636448)
Backed out changeset b149189f5709 (bug 1636853)
Backed out changeset eaaf46684e6b (bug 1636853)
Backed out changeset bf2c79a02367 (bug 1635643)
Backed out changeset f7490320b8df (bug 1636959)
Backed out changeset 39802676a7be (bug 1633673)
Backed out changeset 7653d8ea2bb1 (bug 1633673)
Backed out changeset 8ff49ccdfaae (bug 1636565)
Backed out changeset b762ce260918 (bug 1636875)
Backed out changeset b51eb4a114f1 (bug 1636910)
Backed out changeset 9be231469888 (bug 1636876)
Backed out changeset 5f31e57991c2 (bug 1636876)
Backed out changeset e7ed97376186 (bug 1636833)
Backed out changeset 15829e9f9a7e (bug 1636834)
Backed out changeset 1f72f3314c56 (bug 1636693)
Backed out changeset dcaef651485b (bug 1636693)
Backed out changeset 6ed863230896 (bug 1636000)
Backed out changeset a78843c7ef14 (bug 1636652)
Backed out changeset d57c402d46bb (bug 1636115)
Backed out changeset 8a0d48c8c1b7 (bug 1636115)
Backed out changeset 11648974ec00 (bug 1636605)
Backed out changeset 0f1c47233fd4 (bug 1635336)
Backed out changeset 89945c20767c (bug 1636345)
Backed out changeset 1507bec4555a (bug 1636310)
Backed out changeset c958b21b4327 (bug 1636310)
Backed out changeset 38b803feeb5d (bug 1636573)
Backed out changeset 51e57a232c52 (bug 1636462)
Backed out changeset 3df317ddf64e (bug 1636475)
Backed out changeset 3558d6cb07cb (bug 1634611)
Backed out changeset eba6ef15a7aa (bug 1636449)
Backed out changeset a3d80f6ec681 (bug 1636322)
Backed out changeset c8af1076f821 (bug 1635928)
Backed out changeset eed3838091a8 (bug 1635928)
Backed out changeset 3dd0ae6d2877 (bug 1636532)
Backed out changeset 6363aded3202 (bug 1636527)
Backed out changeset a91492f9bd3a (bug 1636288)
Backed out changeset e794ef17f710 (bug 1636399)
Backed out changeset 00d3b4351cae (bug 1636399)
Backed out changeset eea7ac7afa28 (bug 1636258)
Backed out changeset 198d06f4a3ac (bug 1636435)
Backed out changeset a9af0e6c6aad (bug 1636435)
Backed out changeset 7d8a478f5229 (bug 1636358)
Backed out changeset b9d805f4ad84 (bug 1625663)
Backed out changeset 3ba9753e432d (bug 1625663)
Backed out changeset 00a302798522 (bug 1634781)
Backed out changeset 61cb70c9acd2 (bug 1634781)
Backed out changeset 1c3f93564684 (bug 1636172)
Backed out changeset f2f9303db917 (bug 1636099)
Backed out changeset ebe454a8398d (bug 1636099)
Backed out changeset 07851273e1f0 (bug 1635996)
Backed out changeset 66b52df06b60 (bug 1636090)
Backed out changeset 283a55f78426 (bug 1636090)
Backed out changeset ba81dc78cf8c (bug 1634630)
Backed out changeset c01d4b24f3d4 (bug 1634630)
Backed out changeset ef9f55092965 (bug 1636230)
Backed out changeset 17bd0106bfa3 (bug 1636134)
Backed out changeset 6a4900721412 (bug 1636134)
Backed out changeset 5ec143514b25 (bug 1636020)
Backed out changeset c95bfc5b1754 (bug 1636126)
Backed out changeset ef83e0b2b667 (bug 1636126)
Backed out changeset 42a3d86a2a35 (bug 1635988)
Backed out changeset 563f9d59de8a (bug 1636066)
Backed out changeset b5023fec8e1b (bug 1636066)
Backed out changeset eed68249208e (bug 1589335)
Backed out changeset 023fc1d6e3ae (bug 1636045)
Backed out changeset 8460a9f97320 (bug 1635195)
Backed out changeset 79bc807ec203 (bug 1635195)
Backed out changeset d94d118c0756 (bug 1475158)
Backed out changeset 77dc3674000e (bug 1475158)
Backed out changeset 4ce227790d3d (bug 1636017)
Backed out changeset 4a9c2c6d4bce (bug 1635804)
Backed out changeset 6875eb73b47b (bug 1635804)
Backed out changeset e42d99fdda4d (bug 1635994)
Backed out changeset b6ec228c3010 (bug 1635994)
Backed out changeset 0f3fcbd7d18a (bug 1635896)
Backed out changeset bda58835c160 (bug 1635971)
Backed out changeset 50d4da5c6410 (bug 1635957)
Backed out changeset 4a41195e5501 (bug 1635957)
Backed out changeset 566871c7c848 (bug 1626529)
Backed out changeset faebee3f4438 (bug 1626529)
Backed out changeset ead62ce864f1 (bug 1633611)
Backed out changeset 580f0a6ef09a (bug 1635673)
Backed out changeset 379915b4d665 (bug 1635845)
Backed out changeset 78843b66d294 (bug 1635780)
Backed out changeset 915823097c24 (bug 1635780)
Backed out changeset 333f3d7e16bd (bug 1635808)
Backed out changeset 8c4300aeeadf (bug 1635808)
Backed out changeset 427c0d23b596 (bug 1635838)
Backed out changeset 912b48052ffb (bug 1635751)
Backed out changeset 7b6728023cd7 (bug 1635751)
Backed out changeset 315ed672866a (bug 1635712)
Backed out changeset 6385d5f5470b (bug 1635712)
Backed out changeset 5de79055b0a3 (bug 1635304)
Backed out changeset 8a4401aa7e89 (bug 1634510)
Backed out changeset 697737336cb3 (bug 1635782)
Backed out changeset 1e3eb5c49723 (bug 1635817)
Backed out changeset 0600b9c3391a (bug 1635815)
Backed out changeset f021dcb83231 (bug 1635813)
Backed out changeset 2cfe4a548db9 (bug 1633999)
Backed out changeset 9c5ed78fdae7 (bug 1634622)
Backed out changeset 4c8c1aae1c9b (bug 1635593)
Backed out changeset 0b8d699ede30 (bug 1634161)
Backed out changeset d90d43b8b0d2 (bug 1634161)
Backed out changeset b183b4ccbbe0 (bug 1634697)
Backed out changeset f329a21efb6a (bug 1635323)
Backed out changeset 5ebe3065955e (bug 1635323)
Backed out changeset 2c48ea79c318 (bug 1633074)
Backed out changeset 5b9c257df30d (bug 1634183)
Backed out changeset 42255f44a64a (bug 1634613)
Backed out changeset 04a37833dbd2 (bug 1635337)
Backed out changeset 4399371f8772 (bug 1629089)
Backed out changeset 0c392fcc97ed (bug 1635342)
Backed out changeset 267d7af3baff (bug 1635342)
Backed out changeset fdaa51024719 (bug 1633606)
Backed out changeset 2b16450fca68 (bug 1635306)
Backed out changeset 81572d467873 (bug 1635541)
Backed out changeset c389789d23c2 (bug 1635541)
Backed out changeset 912dee6ba76e (bug 1635217)
Backed out changeset f1c61d14947a (bug 1635217)
Backed out changeset 8b49336c0021 (bug 1635479)
Backed out changeset 8ee704cc798a (bug 1635315)
Backed out changeset e6a223161a01 (bug 1635316)
Backed out changeset e765268e2111 (bug 1635539)
Backed out changeset 4cdd5e7c02c4 (bug 1634297)
Backed out changeset 7d6082e757cb (bug 1634297)
Backed out changeset 22978f4eca60 (bug 1634942)
Backed out changeset ea32130c91cb (bug 1635418)
Backed out changeset 7497cfcc89b8 (bug 1593063)
Backed out changeset aa30e97ff8f4 (bug 1593063)
Backed out changeset 273397b59609 (bug 1625005)
Backed out changeset 9fb6c336ec14 (bug 1629179)
Backed out changeset 3bea7f4bce08 (bug 1629179)
Backed out changeset 5fa2fa5c4100 (bug 1634118)
Backed out changeset 3c129f771366 (bug 1629063)
Backed out changeset e3f5022d2e98 (bug 1634157)
Backed out changeset 6b4bbb6a1829 (bug 1635043)
Backed out changeset 08f9c82b1cae (bug 1635043)
Backed out changeset a1684145f954 (bug 1634725)
Backed out changeset 1e7a63b8201d (bug 1633854)
Backed out changeset 96e901867dfc (bug 1633854)
Backed out changeset 7e4ddbfd531a (bug 1633593)
Backed out changeset ed206d4e48fb (bug 1635138)
Backed out changeset 56680380cb12 (bug 1635138)
Backed out changeset 128ca965d89e (bug 1635141)
Backed out changeset d6c45563fc0a (bug 1635086)
Backed out changeset 3886f4322f2b (bug 1635086)
Backed out changeset 2c391b283120 (bug 1631821)
Backed out changeset 820195d706c4 (bug 1635049)
Backed out changeset 89395cf3875c (bug 1634581)
Backed out changeset 295488f01cf2 (bug 1634581)
Backed out changeset 07af68b342f0 (bug 1634794)
Backed out changeset 6cfbeef8c071 (bug 1634794)
Backed out changeset 498d0e6754f6 (bug 1635078)
Backed out changeset c8b17acc49d2 (bug 1635004)
Backed out changeset a91930887fa2 (bug 1634944)
Backed out changeset ee2fbd0fd53e (bug 1634802)
Backed out changeset 59894d4cd777 (bug 1634802)
Backed out changeset 780f4e8e09cc (bug 1634807)
Backed out changeset d9d2b3b28bb5 (bug 1634807)
Backed out changeset f6023c604230 (bug 1630074)
Backed out changeset 332ae0b9c362 (bug 1632614)
Backed out changeset cd09a475f4dd (bug 1634774)
Backed out changeset 57540cedac41 (bug 1634136)
Backed out changeset 6c23227d3b6a (bug 1634612)
Backed out changeset dd7ae0531977 (bug 1634575)
Backed out changeset 7088d1301e7a (bug 1634070)
Backed out changeset 5b60b7cf3f2f (bug 1632046)
Backed out changeset 22ed9be42752 (bug 1634529)
Backed out changeset 50af11dcaed0 (bug 1633588)
Backed out changeset 93184a590f46 (bug 1633588)
Backed out changeset 733bc969a32e (bug 1630901)
Backed out changeset 88321df62173 (bug 1633934)
Backed out changeset ebd1dc23636c (bug 1635425)
Backed out changeset 2c37cd98181c (bug 1634114)
Backed out changeset 1c3968f96da6 (bug 1634114)
Backed out changeset 7e65c7d4c10c (bug 1633691)
Backed out changeset ad8618c32984 (bug 1634214)
Backed out changeset da0daa759fdc (bug 1635453)
Backed out changeset 9f6188ac30ce (bug 1633787)
Backed out changeset fb48a1a411b8 (bug 1633787)
Backed out changeset 6c2a0a65eb4f (bug 1634718)
Backed out changeset a8072af57203 (bug 1634718)
Backed out changeset 2a86ee8bf532 (bug 1634298)
Backed out changeset 87cf70157822 (bug 1633690)
Backed out changeset aa5aaef185f4 (bug 1634249)
Backed out changeset 1e8b09009b9c (bug 1633441)
Backed out changeset 7081cf7a95c6 (bug 1633441)
Backed out changeset a2740075b6ea (bug 1628246)
Backed out changeset 7bf043c2f796 (bug 1628246)
Backed out changeset c54d3d641172 (bug 1634150)
Backed out changeset bb9e97bac1f6 (bug 1634150)
Backed out changeset 8bb2e88875a5 (bug 1633594)
Backed out changeset 818305611ebe (bug 1633868)
Backed out changeset 88c0485b7dc3 (bug 1631998)
Backed out changeset 64d14cda8fbd (bug 1633577)
Backed out changeset 417cd0a8f560 (bug 1633577)
Backed out changeset 1952a07d64e3 (bug 1634067)
Backed out changeset bf8634838d26 (bug 1600404)
Backed out changeset 0f565474c9ea (bug 1600404)
2020-05-14 22:39:29 +02:00
Oriol Brufau
f6346bd74f Bug 1636258 [wpt PR 23465] - [css-pseudo] Add test with ::marker web animations, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Add test with ::marker web animations

An early return in StyleResolver::PseudoStyleForElementInternal used to
prevent a ::marker with no styles from being affected by web animations.

That early return was already removed in r765965 so the problem has been
fixed, this patch just adds a test.

BUG=1063283

TEST=external/wpt/css/css-pseudo/marker-animate.html

Change-Id: I72a1286e9c3fbd200f46cb3172760f5aaedda18b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2188391
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#766835}

--

wpt-commits: d929bede252f5d1a51fdad2bcfca8839e7e436ac
wpt-pr: 23465
2020-05-14 18:55:36 +00:00
Oriol Brufau
3494bf1d3a Bug 1635316 [wpt PR 23395] - [css-pseudo] Add test for 'revert' in ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Add test for 'revert' in ::marker

The UA styles for ::marker were implemented in a hacky way that needs to
be improved, then the 'revert' keyword doesn't work in ::marker.

This patch adds a test to track this problem.

BUG=457718

Change-Id: I5aecdf550efb350a70709b9d743142ae9e0e430b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2181202
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#765486}

--

wpt-commits: 664d6c5556092f71949ebc50f77724ea35f28d27
wpt-pr: 23395
2020-05-14 18:54:55 +00:00
Gérard Talbot
ebcfc958f7 Bug 1593063 [wpt PR 20030] - Added 7 new CSS4Pseudo tests and 3 references, a=testonly
Automatic update from web-platform-tests
Added 7 new CSS4Pseudo tests and 3 references

--
Improved highlight-z-index-* tests

--
Corrected highlight-z-index-00[1-2].html tests

--
Corrected highlight-z-index-00[1-2].html tests

--

wpt-commits: 4b953890fe7217bdbd20d2777bc32687ef2a2d92, 41d824c80080b7e3eba3fdf522512bd4efeaa932, 472d91adc81ec070295abc98b3e59282874a1c37, 3adb0f89d80bb92ea1a458b3fbe461f7803549a9
wpt-pr: 20030
2020-05-14 18:54:51 +00:00
Gérard Talbot
ce1489c035 Bug 1612442 [wpt PR 21521] - Added 1 ::selection test with &Tab; control characters, a=testonly
Automatic update from web-platform-tests
Added 1 ::selection test with &Tab; control characters (#21521)

* Added 1 ::selection test with &Tab; control characters

* Added a <link rel=stylesheet>
--

wpt-commits: 5eeb26551e5a6ea304caab085250b4def9110801
wpt-pr: 21521
2020-04-13 14:08:34 +00:00
Rune Lillesveen
6afee2d4f1 Bug 1625279 [wpt PR 22479] - Missing ClearNeedsStyleRecalc() for ::first-letter., a=testonly
Automatic update from web-platform-tests
Missing ClearNeedsStyleRecalc() for ::first-letter.

A FirstLetterPseudoElement is marked for style recalc when the text node
the first letter belongs to is removed from the DOM tree. On the next
style recalc, if the first-letter's originating element is inside a
subtree marked for layout tree re-attachment, or one of its descendants
are marked for re-attachment, we delay the first-letter style update
until UpdateFirstLetterPseudoElement is called for the
kRebuildLayoutTree or kAttachLayoutTree phases. For the former, we call
RecalcStyle which will ClearNeedsStyleRecalc, but ofr the
kAttachLayoutTree phase, we called StyleForLayoutObject without clearing
the dirty flag.

Bug: 1064595
Change-Id: Ibebb9c358b473f61b1cff49a7c5ec43bf6894408
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2122347
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753806}

--

wpt-commits: a5094e5aa21dede70be07dc94f41ad7e8ca6d48b
wpt-pr: 22479
2020-03-31 11:31:19 +00:00
Oriol Brufau
202ac9d83b Bug 1624941 [wpt PR 22442] - [css-pseudo] Support animations and transitions in ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Support animations and transitions in ::marker

As resolved in https://github.com/w3c/csswg-drafts/issues/4814, allow
::marker to have animations or transitions. But only for the properties
that apply to ::marker.

TEST=external/wpt/css/css-animations/Document-getAnimations.tentative.html
TEST=external/wpt/css/css-animations/animationevent-marker-pseudoelement.html
TEST=external/wpt/css/css-animations/event-order.tentative.html
TEST=external/wpt/css/css-pseudo/parsing/marker-supported-properties.html
TEST=external/wpt/css/css-pseudo/parsing/marker-supported-properties-in-animation.html
TEST=external/wpt/css/css-transitions/Document-getAnimations.tentative.html
TEST=external/wpt/css/css-transitions/non-rendered-element-004.tentative.html

BUG=1054509

Change-Id: Ie86aeb42d4d311264fd5810c1ad89c0fa7b93ab0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2119518
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753752}

--

wpt-commits: 906031fb2e88a47cf77b34ad1d7f3915da6343f9
wpt-pr: 22442
2020-03-31 11:31:15 +00:00
Oriol Brufau
bac62e6231 Bug 1615689 [wpt PR 21808] - [css-pseudo] Fix text selection and drag-and-drop for pseudo-elements, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Fix text selection and drag-and-drop for pseudo-elements

Before this patch, if you had a tree like

  <div><div::before>abc</div::before>def</div>

and you tried to select "bc", Chromium would end up selecting "ef" in
some cases. Similarly, trying to drag a text and drop it between "bc",
would end up inserting the text between "ef".

This patch fixes the problem, now trying to select "bc" won't select
anything. And dropping some text between "bc" will insert it between
the "cd".

BUG=1051685

TEST=external/wpt/css/css-pseudo/text-selection.html
TEST=fast/css-generated-content/drag-and-drop.html

The 2nd test is internal because I didn't manage to properly simulate
drag and drop using testdriver.js

Change-Id: Iedd594b46022ed434bdb1462232c717ec08f5304
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2047287
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#741909}

--

wpt-commits: 410f5ece454de3f304f4ac885be244ed9755ac18
wpt-pr: 21808
2020-02-18 19:29:57 +00:00
Oriol Brufau
9ddf91757f Bug 1613863 [wpt PR 21653] - [css-pseudo] Avoid empty line in legacy list-item when inserting node, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Avoid empty line in legacy list-item when inserting node

Consider <ol><li><span><div>foo</div></span></li></ol>

Chromium shows "foo" just next to the list marker. However, in legacy
layout, if the <div> was inserted dynamically, then a newline was added
between them.

Also consider
<ul><li><span></span><div style="overflow:hidden">bar</div></li></ul>

Chromium shows "bar" just next to the list marker. However, in legacy
layout, if the <span> was inserted dynamically, then a newline was added
between them.

This patch fixes these inconsistent behaviors.

BUG=1049633

TEST=external/wpt/css/css-lists/add-inline-child-after-marker-002.html
TEST=external/wpt/css/css-pseudo/marker-content-022.html

Change-Id: I11a88a6b375436c72a26c5cd7bcedbb7a197b39d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2041481
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#739423}

--

wpt-commits: 50af93e383dd3813816e3568988f92019ced292d
wpt-pr: 21653
2020-02-14 19:09:08 +00:00
Oriol Brufau
3649727615 Bug 1613183 [wpt PR 21578] - [css-pseudo] Fix legacy ::marker margins not getting updated, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Fix legacy ::marker margins not getting updated

Outside markers behave out-of-flowish, so their intrinsic contribution
to the list item should be 0.

In legacy, this is done by adding negative margins, so that the width of
the marker plus its margins are 0.

However, when calculating the intrinsic contributions of the children,
the code uses the margins in the computed style, not the margins of the
box. Therefore, the marker code used to replace the computed style with
another one that had the changed margins.

This approach was error-prone, for example special care was needed to
reapply the previously calculated margins when the computed style
changed, in order to avoid triggering unnecessary layout.

However, this caused a problem: if 'list-style-position' changed, the
old margins were preserved. But the margins depend on whether the marker
is inside or outside!

This patch fixes the problem and stops changing the computed style of
the marker.

For inside markers, margins don't depend on the size of the marker, and
they were already applied to the computed style in style_adjuster.cc, so
they work well. For outside markers, the patch skips them when
calculating the intrinsic size of the list item.

Bug: 1048672, 457718

TEST=external/wpt/css/css-pseudo/marker-intrinsic-contribution-001.html
TEST=external/wpt/css/css-pseudo/marker-intrinsic-contribution-002.html

The former test fails in LayoutNG because trailing marker spaces are not
preserved, and fails in legacy due to the lack of 'content' support.

Change-Id: Ic21603e9fe1b17b11237286dac3f207b1837a07e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2035962
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#738550}

--

wpt-commits: 6fc4cbe9e6fd83095e43125a3f407f7bc4874115
wpt-pr: 21578
2020-02-14 19:08:40 +00:00
Stephen McGruer
0353354ee5 Bug 1610627 [wpt PR 21319] - Remove instance of 'whitelist' in css/css-pseudo, a=testonly
Automatic update from web-platform-tests
Remove instance of 'whitelist' in css/css-pseudo

As per https://whatwg.org/style-guide

--

wpt-commits: 1703644cf1da595b6926d1f6007c17121720a5b3
wpt-pr: 21319
2020-02-11 12:00:27 +00:00
Oriol Brufau
4f4a90dd6a Bug 1612764 [wpt PR 21542] - [css-pseudo] Fix hit-testing for nested ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Fix hit-testing for nested ::marker

Since r731964, if you clicked a ::marker originated by a ::before or
::after, and you read the 'path' property of the event, the first node
in the array might be the ::before or ::after pseudo-element.

Actually it was fine if you clicked the contents (text or image) of the
::marker. But it's possible to make the ::marker taller than its
contents by setting a big 'line-height'. Then you could click inside the
::marker but outside its contents, and reproduce the problem.

That was wrong, as described in pseudo_element.h,
> Pseudo element are not allowed to be the inner node for hit testing.

This patch fixes it by making PseudoElement::InnerNodeForHitTesting
iterate ancestors until it finds one which is not a pseudo-element.

Bug: 1048000, 457718

TEST=external/wpt/css/css-pseudo/marker-hit-testing.html

Some checks fail in legacy because the marker ignores 'line-height'.

Change-Id: I7bed7d0824638b0c7f4b63a744a3ca4978285445
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2030973
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#737720}

--

wpt-commits: 738d7d25a53e359ecb83349885a34a61b3944fa5
wpt-pr: 21542
2020-02-11 12:00:24 +00:00
Oriol Brufau
9de819d7da Bug 1611818 [wpt PR 21439] - [css-pseudo] Don't update non-normal markers if list-style-type changes, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Don't update non-normal markers if list-style-type changes

If a ::marker has the 'content' property set to something different than
'normal', then the contents of the marker should be determined according
to that value, not from 'list-style-type'.

Before this patch, the behavior was already correct when laying out the
marker for the first time. But if 'list-style-type' changed afterwards,
the marker was updated to reflect the new value, ignoring 'content'.

BUG=457718

TEST=external/wpt/css/css-pseudo/marker-content-021.html

The test fails in legacy since 'content' is not supported yet.

Change-Id: Id845774739927c9c574a66e9d1cc94e6ea59d5e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2020957
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#736105}

--

wpt-commits: 937f0695552a0bea3bdc26e08e2e7195d4c3eced
wpt-pr: 21439
2020-01-31 20:40:42 +00:00
Oriol Brufau
64c2660fb6 Bug 1611496 [wpt PR 21414] - [css-pseudo] Move LayoutNG marker code to ListMarker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Move LayoutNG marker code to ListMarker

The LayoutNGListItem used to hold some information about the marker:
the kind of marker, whether the marker text was up-to-date, etc.

With the addition of the ::marker pseudo-element, markers have become
independent and are no longer created and destroyed by LayoutNGListItem.
However, this made it more difficult to keep the information in sync.

For example, dynamically applying 'content: none' to a symbol marker
destroys it, but LayoutNGListItem didn't notice that marker_type_ was
supposed to change from kSymbolValue to kStatic. This caused a DCHECK
failure and a null deref in SymbolMarkerLayoutText().

To avoid these problems, this patch moves all the code regarding markers
from LayoutNGListItem to ListMarker. This is a new class that contains
generic methods for the LayoutNG markers (LayoutNGListMarker or
LayoutNGInsideListMarker).

BUG=1043478, 457718

TEST=external/wpt/css/css-pseudo/marker-content-020.html

The test fails in legacy since 'content' is not properly supported yet.

Change-Id: I2d7b424bbaf2487a8fbc49303d5114187d8c1fb6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2007754
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735167}

--

wpt-commits: 76a62831d926a19f6b351ac101b2bb835757b574
wpt-pr: 21414
2020-01-31 20:40:13 +00:00
Oriol Brufau
635df670ea Bug 1609670 [wpt PR 21220] - [css-pseudo] Support 'content: none' for LayoutNG ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Support 'content: none' for LayoutNG ::marker

Unlike ::before and ::after, in ::marker 'content: normal' and 'none'
should behave differently: the former should display it normally, the
latter should prevent it from generating a box.

Before this patch, 'normal' and 'none' were both stored as nullptr, so
they were indistinguishable. This patch makes 'none' be stored as a
NoneContentData instead.

However, 'none' keeps behaving as 'normal' for anything different than
::marker. In getComputedStyle, 'none' keeps resolving to 'normal' for
anything different than ::marker, ::before and ::after, and 'normal'
keeps resolving to 'none' for ::before and ::after.

Inheritance is not affected either since the 'content' property can't
be inherited in Chromium.

BUG=457718

TEST=external/wpt/css/css-pseudo/marker-computed-content.html
TEST=external/wpt/css/css-pseudo/marker-computed-size.html
TEST=external/wpt/css/css-pseudo/marker-content-019.html

marker-content-019.html fails in legacy.

Change-Id: Ib71ef18dfb7f7c98e76888bffb408a17fa458235
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2002517
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#732549}

--

wpt-commits: 08c6f66b20ac0a1f40b3284362d824a7e23af46e
wpt-pr: 21220
2020-01-23 11:09:03 +00:00
Oriol Brufau
0544fc8ca6 Bug 1609003 [wpt PR 21152] - [css-pseudo] Implement LayoutNG normal markers as real pseudo-elements, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Implement LayoutNG normal markers as real pseudo-elements

Before this patch, list markers were only pseudo-elements when 'content'
was different than 'normal'. Otherwise they were anonymous boxes.
This makes them be pseudo-elements in that case too.

This only affects LayoutNG, in legacy they continue being anonymous.

BUG=457718

TEST=accessibility/aria-owns-sends-notification.html
TEST=editing/selection/drag-to-contenteditable-iframe.html
TEST=editing/selection/selectNode.html
TEST=editing/selection/selectNodeContents.html
TEST=external/wpt/css/css-pseudo/marker-computed-size.html
TEST=external/wpt/css/css-pseudo/marker-content-014.html
TEST=blink_unittests --gtest_filter=NGInlineCursorTest/NGInlineCursorTest.NextWithListItem/*
TEST=blink_unittests --gtest_filter=ParameterizedTextPaintTimingDetectorTest.CapturingListMarkers/*
TEST=content_browsertests --gtest_filter=All/DumpAccessibilityTreeTest.AccessibilityLi/*

marker-content-014.html still fails in legacy since markers are not
pseudo-elements yet.

marker-computed-size.html also fails in legacy, and one of the subcases
fails in LayoutNG since 'content: none' doesn't work yet in ::marker.

fast/multicol/span/list-multi-column-crash.html now crashes with
LayoutNGBlockFragmentation enabled due to bug 1040947. The crash was
already happening with ::before and ::after, so it's expected.

Change-Id: I51d9661f32b2e1c0c392c261853f8127b74136fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1985952
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#731964}

--

wpt-commits: 7a622eb40a1ad78bf2204d3b0f97bedc59e61069
wpt-pr: 21152
2020-01-23 11:08:43 +00:00
Oriol Brufau
30b496a714 Bug 1605349 - Fix expectation for marker-content-010.html WPT test. r=mats,emilio
Differential Revision: https://phabricator.services.mozilla.com/D57957

--HG--
rename : testing/web-platform/tests/css/css-pseudo/marker-content-010-ref.html => testing/web-platform/tests/css/css-pseudo/marker-content-010-ref-001.html
rename : testing/web-platform/tests/css/css-pseudo/marker-content-010-ref.html => testing/web-platform/tests/css/css-pseudo/marker-content-010-ref-002.html
extra : moz-landing-system : lando
2020-01-16 20:02:52 +00:00
Oriol Brufau
a46d824c6f Bug 1607351 [wpt PR 21058] - [css-pseudo] Test dynamic 'list-style-position' for nested ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Test dynamic 'list-style-position' for nested ::marker

marker-content-013.html was already testing that various kinds of list
markers are properly updated when 'list-style-position' changes.
However, nested ::marker originated by a ::before or ::after were not
included. I'm working on a patch that could have broken that case, so
covering it in the test seems a good idea.

BUG=457718

TEST=external/wpt/css/css-pseudo/marker-content-013.html

Change-Id: I99c72c02298372c2d026adea99fb580a9bc8890a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1985951
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#728868}

--

wpt-commits: 2716d92b9325da7076d37d1b048d76ced69a269d
wpt-pr: 21058
2020-01-09 10:49:22 +00:00
Oriol Brufau
7808b4533f Bug 1606724 [wpt PR 21011] - [css-pseudo] Move all ::marker style adjustments into StyleAdjuster, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Move all ::marker style adjustments into StyleAdjuster

LayoutNGListItem was applying some style adjustments to markers, like
'white-space: pre' to preserve trailing spaces in outside markers.
But this was only affecting markers with 'content: normal', and the
changes weren't exposed in getComputedStyle().
This patch moves these adjustments into StyleAdjuster, so that all
markers are affected equally.

BUG=457718

TEST=external/wpt/css/css-pseudo/marker-content-018.html

The test fails in legacy because the 'content' property is not supported
yet in ::marker.
There is a new failure in marker-supported-properties.html because now
'white-space' will compute to 'pre' in outside markers, even if you
specify a different value. But normal markers were already enforcing
'pre' at used value time anyways.

Change-Id: I6d8b8ec7fb26cb04402032924f87b2c3b8fdb9cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1985966
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#728176}

--

wpt-commits: a3111814fa0e9de6e2decd443d170a6e88304164
wpt-pr: 21011
2020-01-08 00:49:57 +00:00
Oriol Brufau
6cc16aa449 Bug 1606636 [wpt PR 20998] - [css-pseudo] Let non-replaced images be list items with markers, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Let non-replaced images be list items with markers

<img> elements are usually replaced, so they can't originate a ::marker
pseudo-element even if they have 'display: list-item'.

However, if they point to an invalid image and have an alternative text,
then they are not replaced. Therefore they can have ::before and ::after
pseudo-elements, and also a ::marker if they have 'display: list-item'.

Before this patch, markers with 'content: normal' were never generated.
And non-normal ones worked fine in the inside case, but when outside
they triggerede a DCHECK failure because the marker was created but not
laid out.

BUG=1038644

TEST=external/wpt/css/css-pseudo/marker-content-017.html

The test fails in legacy because the 'content' property is not supported
yet in ::marker.

Change-Id: I4420bc2e9a0460f3a59fa030e5e3d249428aa6be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1985759
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#728012}

--

wpt-commits: cb0d9cacbbf30a4cae79faa2e711c26456249b8c
wpt-pr: 20998
2020-01-08 00:49:52 +00:00
Oriol Brufau
ac96b1efc0 Bug 1605711 [wpt PR 20907] - [css-pseudo] Fix WPT expectations for marker-font-variant-numeric-*, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Fix WPT expectations for marker-font-variant-numeric-*

The marker-font-variant-numeric-default.html test is supposedly passing
in Chromium according to Chromium, but not according to wpt.fyi. The
reason is that in certain configurations, the test may look slightly
different than the reference due to font anti-aliasing.

The marker-font-variant-numeric-normal.html fails in all browsers due to
lack of support for nested ::marker selectors, but there are also some
differences in the parts that should actually match the reference.

This patch fixes both issues.

Bug: 457718
Change-Id: Id646b7810aed18441e1c7b37ad7bb1a37877be2f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980174
Reviewed-by: Manuel Rego <rego@igalia.com>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#727963}

--

wpt-commits: 5449025de1490e2caf8eb67b2b017e78afa179b1
wpt-pr: 20907
2020-01-08 00:49:48 +00:00
Gérard Talbot
95a4fe9c02 Bug 1593074 [wpt PR 20033] - Added 2 CSS4Pseudo tests and 1 reference, a=testonly
Automatic update from web-platform-tests
Added 2 CSS4Pseudo tests and 1 reference

--

wpt-commits: b048002b012a8290b7dbdb0f0d685454e8837b6f
wpt-pr: 20033
2020-01-03 11:35:59 +00:00
Oriol Brufau
5a18e347e5 Bug 1605149 [wpt PR 20864] - [css-pseudo] Properly set 'display: inline-block' to outside ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Properly set 'display: inline-block' to outside ::marker

Before this patch, outside markers were assigned 'display: inline-block'
but this happened in two different places: in LayoutNGListItem for
markers with 'content: normal', and in StyleAdjuster for content ones.

However, this meant that 'getComputedStyle(el, "::marker").display'
would be 'inline' in the former case and 'inline-block' in the latter.

This patch fixes that issue by ensuring that StyleAdjuster runs for all
markers, assigning 'display: inline-block' to outside ones even when
'content: normal'.

This has a noticeable effect even if the CSSMarkerPseudoElement flag is
disabled: text decorations are no longer propagated to outside markers.
This is actually expected, since decorations shouldn't be propagated to
inline-block descendants. They were being propagated for markers with
'content: normal' because the code that stops the propagation either
wasn't running for unstyled markers, or for styled normal markers it was
running before 'display: inline-block' was assigned.

This change won't be a compat problem since none of Chromium legacy,
Firefox and Edge propagate text decorations to outside markers by
default. Doing it seemed a LayoutNG bug.

Spec: https://drafts.csswg.org/css-pseudo-4/#marker-pseudo
Spec: https://drafts.csswg.org/css-lists/#list-style-position
Spec: https://drafts.csswg.org/css-text-decor-4/#line-decoration

BUG=457718

TEST=external/wpt/css/css-pseudo/marker-content-016.html
TEST=external/wpt/css/css-pseudo/marker-display-computed.html

The marker-content-016 test fails in legacy since the 'content' property
is not supported yet in ::marker

Change-Id: Ia1396a4f6c5d9825dba5a6265c32096a7066fbed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1975887
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#726783}

--

wpt-commits: 2cb652e543d379bafcb3d0d26e2de28836f22df4
wpt-pr: 20864
2020-01-03 11:35:53 +00:00
Blink WPT Bot
392b7d6031 Bug 1604304 [wpt PR 20795] - [css-pseudo] Recalculate viewport units in ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Recalculate viewport units in ::marker (#20795)

If a marker uses viewport units (vw or vh), they should be recalculated
when the size of the viewport changes.

This patch updates node traversal methods to include ::marker, so that
it's taken into account when updating viewport units.

However, this is only fixed for markers with non-normal content, since
otherwise they aren't implemented as real pseudo-elements yet.

BUG=457718

TEST=external/wpt/css/css-pseudo/marker-content-014.html

The test still fails because it includes cases with 'content: normal'.

Change-Id: I7495dd5c4bbd84d6286635a63199bfcc663c62c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1970015
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#725463}

--

wpt-commits: 6d7a762c4c65d06fc95752f17ce96426c7b2d441
wpt-pr: 20795
2019-12-23 11:14:51 +00:00
Oriol Brufau
f2c3eef05e Bug 1604795 [wpt PR 20837] - [css-pseudo] Let 'content' ::markers be forced to be inside, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Let 'content' ::markers be forced to be inside

Even if a list item has 'list-style-position: outside', Chromium may
force its marker to be inside when it's a <li> outside a list element.

This information was stored in layout, but this created an undesirable
dependency since the computed 'display' value of the marker depends on
whether it's inside or outside. And it wasn't possible to force a marker
with non-normal 'content' to be inside.

This patch fixes it by adding an internal 'IsInsideListElement' flag in
ComputedStyle. This design also avoids traversing all the ancestors of
every <li> element.

BUG=457718

TEST=external/wpt/css/css-pseudo/marker-content-015.html

The test fails in legacy since 'content' is not supported yet.

Change-Id: I2df70841e8e9d729fd4aa47ec9b9973c09a82dcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1973914
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#726310}

--

wpt-commits: f61f56f084c397f6d46ffd18723300a124d12ea5
wpt-pr: 20837
2019-12-23 11:14:46 +00:00
Gérard Talbot
6ad6894ee0 Bug 1604361 [wpt PR 20802] - [CSS4Pseudo] Added 2 tests and 1 reference on selection and text-shadow, a=testonly
Automatic update from web-platform-tests
[CSS4Pseudo] Added 2 tests and 1 reference on selection and text-shadow

--

wpt-commits: b5b7813e9ce247495b0df30b2f9c8a35de2eacba
wpt-pr: 20802
2019-12-23 11:14:40 +00:00
Gérard Talbot
6907a72ffe Bug 1570421 [wpt PR 18214] - Added 2 tests and 2 references on selection [css-pseudo], a=testonly
Automatic update from web-platform-tests
Added 2 tests and 2 references on selection [css-pseudo] (#18214)

--

wpt-commits: 694946ba608bd3b74dc218b3b94e571bd1daf169
wpt-pr: 18214
2019-12-23 11:14:37 +00:00
Oriol Brufau
594c948e50 Bug 1604455 [wpt PR 20810] - [css-pseudo] Load missing reftest-wait.js script in ::marker test, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Load missing reftest-wait.js script in ::marker test

--

wpt-commits: 483f0543f1bfb5b2f1e602fefe8d1a23517322f5
wpt-pr: 20810
2019-12-23 11:14:23 +00:00
Oriol Brufau
b3611891d2 Bug 1602418 [wpt PR 20678] - [css-pseudo] Fix position of outside 'content' markers, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Fix position of outside 'content' markers

The position of an outside marker is calculated depending on the
'list-style-type' property. However, this patch ensures that if ::marker
has a non-normal 'content', the end of the marker will be aligned with
the start of the list item, regardless of 'list-style-type'.

The patch also simplifies the logic in InlineMarginsForOutside, since
the code for LTR and RTL directions was basically the same.

Spec: https://drafts.csswg.org/css-lists/#content-property

BUG=457718

TEST=web_tests/external/wpt/css/css-pseudo/marker-content-012.html

The test fails in legacy because 'content' doesn't work in ::marker yet.

Change-Id: I21cfd4ad3e21f2e19e8639809270bf3b4c1ad5dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1953625
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#725264}

--

wpt-commits: aaa82d28bbd7c5d43f0939b6edaa4d10bf773069
wpt-pr: 20678
2019-12-23 11:14:19 +00:00
Oriol Brufau
416bd26241 Bug 1604283 [wpt PR 20792] - [css-pseudo] Add "reftest-wait" class in async ::marker test, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Add "reftest-wait" class in async ::marker test

--

wpt-commits: 983fac69bdb2729ed018044df6a3bad80c6d6e81
wpt-pr: 20792
2019-12-23 11:14:17 +00:00
Oriol Brufau
28934e3f7a Bug 1604146 [wpt PR 20785] - [css-pseudo] Adjust computed 'display' value for outside markers, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Adjust computed 'display' value for outside markers

Outside markers generate a block container, so their computed 'display'
value should change from 'inline' to 'inline-block'. This was already
happening in layout_ng_list_item.cc for markers with 'content: normal',
this patch does it for non-normal markers.

As a side-effect, this fixes the issue that non-normal markers weren't
updated when the 'list-style-position' property changed dynamically.

BUG=457718

TEST=external/wpt/css/css-pseudo/marker-content-013.html

Change-Id: I674abd77c5e736acd8147db3d3fedb2dbc5a174a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1960149
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#725091}

--

wpt-commits: 54ea7f98578c181dd4448cd76963c3b04e437828
wpt-pr: 20785
2019-12-19 11:14:53 +00:00
James Graham
06b52aa8ac Bug 1592955 [wpt PR 20017] - Add support for crashtests, a=testonly
Automatic update from web-platform-tests
Add load method to protocol

--
Generalise reftest-wait script to allow other test types

--
Ad crashtest support to manifest

--
Add crashtest support to wptrunner

--
Add example test

--
Rename existing -crash tests that may not work as crashtests

For testharness tests the following criteria were applied:
 * Test includes an assert
 * Test includes something other than synchronous tests

For reftests all existing tests were renamed

--
Schedule crashtests in CI

--
Add some docs for crashtests

--

wpt-commits: c1954bcecd0991460d9f2b58456da8958cb97424, e8b454eebe22173569353ae3e327cd8a6951b9e0, cee68c9e85c0d3835f7e4ae3eb673f919242c881, 5a636f4de065dbd756f39b41859d378bd3609658, 14f8cfeb1458deb523f179cff1ae7b2bf12dc667, 50ae113e26987271de56826873c0a2eb43f7b515, 40113cc91c00f0cad78072d2fd51805a775df95c, 5b46ea7c4fe67113a69306afbf9c95b6ba041dbf
wpt-pr: 20017


--HG--
rename : testing/web-platform/tests/css/css-contain/contain-chrome-crash-001.html => testing/web-platform/tests/css/css-contain/contain-chrome-thcrash-001.html
rename : testing/web-platform/tests/css/css-images/gradient-crash.html => testing/web-platform/tests/css/css-images/gradient-refcrash.html
rename : testing/web-platform/tests/css/css-images/infinite-radial-gradient-crash.html => testing/web-platform/tests/css/css-images/infinite-radial-gradient-refcrash.html
rename : testing/web-platform/tests/css/css-pseudo/before-in-display-none-crash.html => testing/web-platform/tests/css/css-pseudo/before-in-display-none-thcrash.html
rename : testing/web-platform/tests/css/css-pseudo/first-letter-of-html-root-crash.html => testing/web-platform/tests/css/css-pseudo/first-letter-of-html-root-refcrash.html
rename : testing/web-platform/tests/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-crash.html => testing/web-platform/tests/css/css-shapes/shape-outside/supported-shapes/inset/shape-outside-inset-refcrash.html
rename : testing/web-platform/tests/css/css-typed-om/set-var-reference-crash.html => testing/web-platform/tests/css/css-typed-om/set-var-reference-thcrash.html
rename : testing/web-platform/tests/dom/nodes/remove-and-adopt-crash.html => testing/web-platform/tests/dom/nodes/remove-and-adopt-thcrash.html
rename : testing/web-platform/tests/payment-request/payment-request-constructor-crash.https.html => testing/web-platform/tests/payment-request/payment-request-constructor-thcrash.https.html
rename : testing/web-platform/tests/svg/pservers/pattern-with-invalid-base-cloned-crash.html => testing/web-platform/tests/svg/pservers/pattern-with-invalid-base-cloned-thcrash.html
2019-12-19 11:14:31 +00:00
Oriol Brufau
bb9d34f2a7 Bug 1602427 [wpt PR 20679] - [css-pseudo] Fix WPT test mismatch expectations for ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Fix WPT test mismatch expectations for ::marker

In some tests I added both "match" and "mismatch" conditions, expecting
both of them to hold since that's how Chromium treats that.

However, according to the docs, if a test has multiple conditions, they
should be treated as an OR operator. This makes a test pass in Firefox
even if the rendering is wrong. The proper way to check multiple
conditions with the AND operator is adding the extra ones in the
references.

Spec: https://web-platform-tests.org/writing-tests/reftests.html#complex-pass-conditions
Change-Id: Idb737e2486f2155f05a09a2c88bc1094c1b603e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1958128
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#723296}

--

wpt-commits: bf028a7fa1d2edd9c4e6aa780d3844554eefbde1
wpt-pr: 20679
2019-12-11 10:30:34 +00:00
Oriol Brufau
465aa65222 Bug 1602822 [wpt PR 20643] - [css-pseudo] Allow 'white-space' in ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Allow 'white-space' in ::marker

The spec has added 'white-space' to the list of properties that apply to
::marker pseudo-elements.

Spec: https://drafts.csswg.org/css-pseudo-4/#marker-pseudo

BUG=457718

TEST=external/wpt/css/css-pseudo/parsing/marker-supported-properties.html

Change-Id: Iaf05bb568d0127b2aae4219715bb8839620101a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954384
Reviewed-by: Koji Ishii <kojii@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#722420}

--

wpt-commits: ccf316907ed4451ad0c752b686abb6ab75c54618
wpt-pr: 20643
2019-12-11 10:30:10 +00:00
Oriol Brufau
5e58de262a Bug 1600810 [wpt PR 20568] - [css-pseudo] Set default styles to ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Set default styles to ::marker

Markers should have the following styles by default:
 - unicode-bidi: isolate
 - font-variant-numeric: tabular-nums

Spec: https://drafts.csswg.org/css-pseudo-4/#marker-pseudo

Bug: 457718

TEST=external/wpt/css/css-pseudo/marker-default-styles.html
TEST=external/wpt/css/css-pseudo/marker-font-variant-numeric-default.html
TEST=external/wpt/css/css-pseudo/marker-font-variant-numeric-normal.html
TEST=external/wpt/css/css-pseudo/marker-unicode-bidi-default.html
TEST=external/wpt/css/css-pseudo/marker-unicode-bidi-normal.html

The unicode-bidi tests fail in legacy because of bug 1012289.
And marker-font-variant-numeric-normal.html fails everywhere because
nested ::marker pseudo-elements are not supported yet.

Change-Id: I80360d0e2bfa78ebca1c10e1064daa17e66e6f22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1943228
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#720875}

--

wpt-commits: be856ef52c77169447017256bb81adf058e67880
wpt-pr: 20568
2019-12-09 11:07:11 +00:00
Oriol Brufau
63f256776d Bug 1600277 [wpt PR 20529] - [css-pseudo] Properly check that ::marker supports text-combine-upright, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Properly check that ::marker supports text-combine-upright

The marker-supported-properties.html test was checking that the
'text-combine-upright' property can be set to 'none' in ::marker.
However, this wasn't much useful, since 'none' is the initial value.
The test would pass even if ::marker ignored the declaration.
Change it to check 'text-combine-upright: all' instead.

Bug: 457718
Change-Id: Ib3b2109713f474e2fc75918184795036e1fea664
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1943239
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#720174}

--

wpt-commits: 87d3a057ba2a82aaf19eecad4b11d1ecd4f1aad1
wpt-pr: 20529
2019-12-04 12:12:49 +00:00
Oriol Brufau
2c8239304a Bug 1599510 [wpt PR 20453] - [css-pseudo] Fix assert failure when combining ::first-line and ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Fix assert failure when combining ::first-line and ::marker

The interaction of a ::marker pseudo-element with a 'content' property
and the ::first-line of the list-item produced a DCHECK failure in debug
builds (it was fine with debug disabled). This patch fixes it.

Bug: 457718

TEST=external/wpt/css/css-pseudo/first-line-and-marker.html

Change-Id: I443934f3a5cbfd95913287ac2bfb0966fa707e3d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1937068
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#719561}

--

wpt-commits: afd1488b85e8a6c6381c901f43c27f62049fc256
wpt-pr: 20453
2019-12-04 12:12:28 +00:00
Emilio Cobos Álvarez
1bc4aae613 Bug 1601026 - Mark some marker tests as tentative. r=Oriol
They use properties like writing-mode or display inside ::marker, which is not
currently allowed by css-pseudo.

Differential Revision: https://phabricator.services.mozilla.com/D55718

--HG--
rename : testing/web-platform/meta/css/css-pseudo/marker-content-007.html.ini => testing/web-platform/meta/css/css-pseudo/marker-content-007.tentative.html.ini
rename : testing/web-platform/meta/css/css-pseudo/marker-content-008.html.ini => testing/web-platform/meta/css/css-pseudo/marker-content-008.tentative.html.ini
rename : testing/web-platform/meta/css/css-pseudo/marker-content-009.html.ini => testing/web-platform/meta/css/css-pseudo/marker-content-009.tentative.html.ini
rename : testing/web-platform/meta/css/css-pseudo/marker-content-011.html.ini => testing/web-platform/meta/css/css-pseudo/marker-content-011.tentative.html.ini
rename : testing/web-platform/tests/css/css-pseudo/marker-content-007.html => testing/web-platform/tests/css/css-pseudo/marker-content-007.tentative.html
rename : testing/web-platform/tests/css/css-pseudo/marker-content-008.html => testing/web-platform/tests/css/css-pseudo/marker-content-008.tentative.html
rename : testing/web-platform/tests/css/css-pseudo/marker-content-009.html => testing/web-platform/tests/css/css-pseudo/marker-content-009.tentative.html
rename : testing/web-platform/tests/css/css-pseudo/marker-content-011.html => testing/web-platform/tests/css/css-pseudo/marker-content-011.tentative.html
extra : moz-landing-system : lando
2019-12-03 22:35:02 +00:00
George Steel
ee167d714d Bug 1594231 [wpt PR 20101] - Create test for style of intersecting pseudo-elements, a=testonly
Automatic update from web-platform-tests
Create test for style of intersecting pseudo-elements

Adds new WPT reftest testing the styling of ::before and ::after
pseudo-elements within a ::first-line pseudo-element.
This currently fails in chromium and passes in firefox.

Bug: 892983
Change-Id: If15b4004b8091fa0871e580dc2f059a69174546a

--

wpt-commits: bd66eaf4732572de37bbd163842ac060bfe37f84
wpt-pr: 20101
2019-11-29 10:55:40 +00:00
Oriol Brufau
113b8ca238 Bug 1593043 [wpt PR 20025] - [css-pseudo] Apply ::marker styles to markers, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Apply ::marker styles to markers

Currently markers are assigned a mostly empty style, it just inherits
from the list item and has some customizations like `display`.

This patch makes them use the style of the ::marker pseudo-element.
The inheritance is also from the list item, and the customizations are
applied afterwards.

The change only affects markers originated by real elements. Markers
originated by ::before or ::after pseudo-elements should get the styles
from ::before::marker or ::after::marker, but this will be addressed in
a follow-up patch.

Spec: https://drafts.csswg.org/css-pseudo-4/#marker-pseudo

BUG=457718

TEST=external/wpt/css/css-pseudo/marker-and-other-pseudo-elements.html
TEST=external/wpt/css/css-pseudo/marker-color.html
TEST=external/wpt/css/css-pseudo/marker-font-properties.html

Change-Id: Ide2fbc344e4732257044ebd3e7966906af21c434
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1893265
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#711883}

--

wpt-commits: e76f87b52667b3e8b43285e72b654bfa7cb8ace9
wpt-pr: 20025

Differential Revision: https://phabricator.services.mozilla.com/D53611
2019-11-20 11:19:42 +00:00
Oriol Brufau
9c70c98d47 Bug 1592748 [wpt PR 20003] - [css-pseudo] Restrict the properties allowed in ::marker, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Restrict the properties allowed in ::marker

Only the following properties apply to a ::marker pseudo-element:
  - all font properties
  - `color`
  - `text-combine-upright`, `unicode-bidi`, and `direction`
  - `content`

Spec: https://drafts.csswg.org/css-pseudo-4/#marker-pseudo

BUG=457718

TEST=external/wpt/css/css-pseudo/parsing/marker-supported-properties.html

The test has 2 failures because font-synthesis and font-variant-position
have not been implemented yet.

Change-Id: I9f82e13bdd14a06a84ee55e352cd5a2c64d6fb97
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1891310
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#710995}

--

wpt-commits: bdd57938c6385091bb4120cb7bfb0749ee62b2a1
wpt-pr: 20003

Differential Revision: https://phabricator.services.mozilla.com/D53584
2019-11-20 11:19:30 +00:00
Oriol Brufau
44d6530c24 Bug 1591999 [wpt PR 19950] - Fix the meta description of tree-abiding-pseudo-elements.html, a=testonly
Automatic update from web-platform-tests
Fix the meta description of tree-abiding-pseudo-elements.html (#19950)

--

wpt-commits: 23c1462333cb99f2ed9cefbb472e199eeca14ddc
wpt-pr: 19950

Differential Revision: https://phabricator.services.mozilla.com/D53516
2019-11-20 11:18:58 +00:00
Oriol Brufau
db00028d3c Bug 1591518 [wpt PR 19852] - [css-pseudo] Implement parsing for ::marker pseudo-element, a=testonly
Automatic update from web-platform-tests
[css-pseudo] Implement parsing for ::marker pseudo-element

Parse ::marker as a valid pseudo-element, behind an experimental flag.
The actual logic of ::marker will be implemented in follow-up patches.

Intent to Implement:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/8v7pouXxxAc

Spec: https://drafts.csswg.org/css-pseudo-4/#marker-pseudo

Bug: 457718

TEST=external/wpt/css/css-pseudo/parsing/tree-abiding-pseudo-elements.html
TEST=external/wpt/css/css-scoping/slotted-parsing.html

Change-Id: Ia4014afdbf5d0f2a642f349641140b03dfceee22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876407
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709390}

--

wpt-commits: b1e94422f865fe7aa6361d4345863d99cda35110
wpt-pr: 19852

Differential Revision: https://phabricator.services.mozilla.com/D53484
2019-11-20 11:18:44 +00:00
Mats Palmgren
76378f408b Bug 1595103 - [css-pseudo] Skip all ::marker boxes when finding content for a ::first-letter. r=emilio
Per discussion in:
https://github.com/w3c/csswg-drafts/issues/4503

Differential Revision: https://phabricator.services.mozilla.com/D52544

--HG--
extra : moz-landing-system : lando
2019-11-11 19:28:34 +00:00
Philip Jägenstedt
48b9e18cfc Bug 1590525 [wpt PR 19832] - Convert tabs to spaces in css/ directories with few lint errors, a=testonly
Automatic update from web-platform-tests
Convert tabs to spaces in css/ directories with few lint errors (#19832)

This follows the same approach as in https://github.com/web-platform-tests/wpt/pull/19824
to identify directories in css/ with few lint errors and removes the
lint.whitelist exceptions for those.

For css/css-counter-styles/ some newlines were also added/removed to
arrive at a reasonable style.
--

wpt-commits: 5af91f79216344d5a243f2fc133e373b39e1322e
wpt-pr: 19832
2019-10-31 12:16:28 +00:00
Rune Lillesveen
fee19f58e4 Bug 1590234 [wpt PR 19815] - Don't generate pseudo element inside display:none., a=testonly
Automatic update from web-platform-tests
Don't generate pseudo element inside display:none.

We checked for non-null GetComputedStyle(), but it may also be non-null
inside display:none when ensured from getComputedStyle(). Skip
generating pseudo elements for that case. This caused a DCHECK failure
due to an incorrect marking for layout tree re-attachment inside
display:none.

Bug: 1013570
Change-Id: I75318b9d3bed1ed68dab232d90bbdc9b68655152
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872096
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708147}

--

wpt-commits: 03f4ea383cd4d9c5e8f46f9f405833e96a3a4809
wpt-pr: 19815
2019-10-31 12:16:19 +00:00
Florian Rivoal
05ba1979a4 Bug 1588976 [wpt PR 19718] - Fix spec links to use actual anchors that exists, a=testonly
Automatic update from web-platform-tests
Fix spec links to use actual anchors that exists

--

wpt-commits: 0e1bcae7f14564f0946484c9e8021b0a6fdcb68d
wpt-pr: 19718
2019-10-24 18:03:58 +01:00
Eric Willigers
1684456c00 Bug 1580847 [wpt PR 19025] - CSS: Serialize font shorthand with spaces around '/', a=testonly
Automatic update from web-platform-tests
CSS: Serialize font shorthand with spaces around '/'

Each '/' is a CSS value should have a space before and after.
https://github.com/w3c/csswg-drafts/issues/4282

Omit 'normal' values from computed font serialization.

Change-Id: Iebbfe80ae0c7c3ebe0101b432c0d95a7d265154f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800894
Commit-Queue: Emil A Eklund <eae@chromium.org>
Auto-Submit: Eric Willigers <ericwilligers@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696522}

--

wpt-commits: 5488ba49034a78c2fdfe7ca0d898ed3adb238f6b
wpt-pr: 19025
2019-09-18 23:38:14 +00:00
Alan Stearns
7ac24553de Bug 1579253 [wpt PR 18882] - Add reftest for width of first-letter, a=testonly
Automatic update from web-platform-tests
Add reftest for width of first-letter (#18882)

--

wpt-commits: 5ac316ef83b574438b138ad046af0bf4d8137a36
wpt-pr: 18882
2019-09-14 08:51:41 +00:00
Eric Willigers
a7fedf33a4 Bug 1575857 [wpt PR 18613] - CSS: getComputedStyle() returns computed colors in gradients, a=testonly
Automatic update from web-platform-tests
CSS: getComputedStyle() returns computed colors in gradients

We now return rgb() values instead of color keywords in
getComputedStyle() results for gradient images.

Not yet addressed: lengths should also be made absolute,
e.g. we should never have 'ex' units in getComputedStyle()
results.

Bug: 977042
Change-Id: If20dc6b773f8948370fbda63397e06c784e3d55c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1765133
Commit-Queue: Eric Willigers <ericwilligers@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Cr-Commit-Position: refs/heads/master@{#691943}

--

wpt-commits: 9e6ba1398074f2fefa40ee60c05c97ee0d4f29b2
wpt-pr: 18613
2019-09-03 14:23:32 +00:00